LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer Build Error -12: Access Denied to Folder

Can someone please explain why the LabVIEW Installer builder sometimes (but not always) returns the error shown below?  I'm bemused as to why the LabVIEW process or MS SDK function would be denied access to a folder that it just created!  Are there any known conflicts with McAfee Anti-Virus or Datakeeper?  I see activity on those processes during an Installer build.
 
Larry

=============================================================================

CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi

Loading product deployment information

Loading product deployment information

Adding files to installer

Done adding files

Preparing to build deployment

Copying products from distributions

Building deployment

Copying setup files

Setting merged database information

Setting product information

Setting developer part information

**************

*** Error: Windows SDK function returned an error. (Error code -12)

Could not move file (source = "C:\Data\LabView\SCC Local\Zipper Video Measurement System\builds\ZVMS 1.0\Installer\temp\dp\"; destination = "C:\Data\LabView\SCC Local\Zipper Video Measurement System\builds\ZVMS 1.0\Installer\Volume\bin\dp\").

Access is denied.

*** End Error Report

**************

**************

*** Error: Windows SDK function returned an error. (Error code -12)

Error deleting directory "C:\Data\LabView\SCC Local\Zipper Video Measurement System\builds\ZVMS 1.0\Installer\temp\".

The process cannot access the file because it is being used by another process.

*** End Error Report

**************

0 Kudos
Message 1 of 6
(4,125 Views)

Hello Larry,

 

This particular error message appears to come from a Windows function called during the build process.  I believe it to mean that it simply can’t access a file because some other process is using it.  LabVIEW should be handling its file accesses appropriately (and I don’t see much in the way of other occurrences of this problem) so I think you could be on to something with suspecting the GateKeeper program.  I am unfamiliar with the workings of the program but a Google page I found mentions:

 

“DataKeeper works in the background, monitoring file activities and making compressed backups automatically as you make changes to data. Since there is no need to schedule backups, you don't have to worry about forgetting to do them.”

 

Automatically makes backups as data is changed?  This sounds like datakeeper could be detecting all the file IO going on and automatically coming in to backup data.  If datakeeper is in the middle of a backup when LabVIEW is attempting to delete a file I could see this access error occurring.  Furthermore, since the timing of all of this is unpredictable it also might explain why it only sometimes happens.

 

It’s only a theory, but at least it’s a start.  You might consider either disabling the datakeeper or trying the build on other computers.

 

Hopefully this helps, please let me know how it goes!

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 6
(4,112 Views)
I have same problem,I try a lot.But still problem there!
0 Kudos
Message 3 of 6
(3,822 Views)
Hello panhu,

I am sorry to hear that you are experiencing the same difficulty. Are you using the DataKeeper software? If so, this may be accessing files while you are trying to build the LabVIEW installer as suggested in the previous post. If you are not using this software, can you think of any other applications or users that might be accessing some of the files on this machine?

I am interested to know a few more things so that we can begin troubleshooting:
1) Are you receiving the exact same error message?
2) Have you tried building your installer on multiple machines?
3) Does this problem occur each time you attempt to build an installer or only with this particular executable?
4) What version of LabVIEW are you using?
5) What OS are you using?
6) What other steps have you tried so far?

Mike D.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(3,801 Views)
This morning I called NI ,Then fix this problem!
0 Kudos
Message 5 of 6
(3,796 Views)
That's great to hear that we could help. Just so that this forum is well documented, would you mind posting some details about the problem and how it was solved? Thanks very much for your time!

Mike D.
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(3,771 Views)