LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

I receive this error when attempting to build an installer for my Labview application.
 
 
CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFDistCopyList_CopyItem.vi

Loading product deployment information
Loading product deployment information
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
Copying distribution 'NI-DAQ 8.0.1' from: D:\ to: C:\DARTS\ATS_TE_Project\DARTS_NI-DAQ_HP3561A_Dynamic_Signal_Analyzer\Installer\
 
**************
*** Error: Windows SDK function returned an error. (Error code -12)
The system cannot find the file specified.
*** End Error Report
**************
 
Done building deployment
0 Kudos
Message 1 of 8
(16,956 Views)
Hi rich hilt-
 
Please see the following discussion forum.  It documents the exact same error and lists steps to resolve the problem.
 
 
Hope this helps!
Drew Pierce | District Manager, Central Texas | National Instruments
0 Kudos
Message 2 of 8
(16,913 Views)

I removed every installation NI-DAQ from my system and downloaded and installed DAQmx 8.3. This is the version I want anyway. I don't understand why Installer builder keeps asking me for the NI-DAQ 8.0.1
Distribution when only 8.3 is installed now.

I did everything in last post but this did NOT solve the problem. The Installer builder still wants the 8.0.1 distribution. With the same resulting error. There is some good news I was able to build an Installer when I selected Runtime 5 from the Install type drop down in the Additional Installer category. Any other install type generates an error. If this runtime level is good enough to get my applications running on my target I guess this is a good work around at this time, but I would like to resolve the issue completely as least for peace of mind. As a last note I do have administrator privileges on my system.Also I have Labview 8.0 and 8.2.1 installed on my development system.

Rich..

0 Kudos
Message 3 of 8
(16,903 Views)
Hi Rich-
 
 
I've been looking into this extensively and found that in fact, this 'Runtime 5' workaround is quite prominent among the solutions for this issue, as we have many other service requests documenting this same situation.
 
Also, the following KnowledgeBase article has helped many customers resolve related problems, so it would be worth reading/trying as well.
 
Hope this helps!
Drew Pierce | District Manager, Central Texas | National Instruments
0 Kudos
Message 4 of 8
(16,888 Views)

I have this same problem, but I have NI-DAQmx 8.5 which came with LabVIEW 8.2.1.  Has anyone else had this problem?

I'm trying to build an installer which needs to have drivers for my USB 6009.

I tried runtime #5 and the complier worked, but is that the final fix or do I need to change something?  The software keeps asking for NI-DAQmx 8.1.  I uninstalled 8.5 several times,but get the same error.

Thanks,

Henry

0 Kudos
Message 5 of 8
(16,856 Views)
I was able to get the install builder to build an installer for my
Application today 6/6/07. These are the steps I performed along with good amounts of trail and error.

1) I attempted to re-install the NI-DAQ 8.0.1 drivers however I didn't perform this because it said it remove NI products which I didn't want removed. But it didn't tell me what it would remove.
2) Instead, I copied the entire NI-DAQ 8.0.1 distribution to a directory on my hard drive.
3) I set the NI-DAQ 8.3 install build type to FULL in install builder.
4) In install builder when prompted for the components from the NI-DAQ 8.0.1 I browsed to the NI-DAQ 8.0.1 directory on the hard drive and also un-checked the cache box.
5) It through another error this time saying it couldn't find C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker71\LVBroker71Deu.mst (and, LVBroker71Fra.mst, LVBroker71jpn.mst, LVBroker1071Deu, LVBroker1071Fra.mst, LVBroker1071jpn.mst). It also could not find the LVBroker1071 files in the C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker1071 directory either.
6) I performed a search for these files and they did not exist in the NI-DAQ 8.0.1 directory on my hard drive or the 8.0.1 CD I have.
7) These files DID exist in my NI-DAQ 8.3 directory located on my hard drive.
8) I copied the LVBrokerxxxx.mst (listed in 5 above) files from the NI-DAQ 8.3 directory on my hard drive to the corresponding location in the NI-8.0.1 directory on my hard drive.
9) This time when I rebuilt the installer for my application the build was successful.

Additional information:
When I built my application I only selected English for language support. In Install builder in "Dialog Information I also selected English.

I haven't attempted to try the installer on my target yet so I'm not quite sure how successful I really was but at least I have a installer.

Let me know if this also works for you.

Rich...

0 Kudos
Message 6 of 8
(16,850 Views)
I just had this same error and the fixes described were very helpful.
0 Kudos
Message 7 of 8
(16,576 Views)

Same error was seen on one of my project while creating installer. I noticed that I could create installer for one of my projects and not the other one. Even while creating exe, I used to get warning of duplicate paths.

 

The installer error went away after i tried deleting the Max channels from my project and then creating installer.

 

Hope this helps you guys in some ways !

0 Kudos
Message 8 of 8
(15,583 Views)