LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code -21 when create the installer for windows platform

Solved!
Go to solution

hi experts, I am a beginner on labview, meet this error when build the application installer, could any body help me on the error -21, as shown below,

what maybe the cause? thanks alot!

 

CDK_Item_OnDblClick.vi.ProxyCaller >> CDK_Item_OnDblClick.vi >> CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_BuildDevPart.vi >> NI_MDF.lvlib:MDFBuildDevPart_SetOtherProperties.vi


Loading product deployment information
Loading product deployment information
Loading product deployment information
Loading product deployment information
Adding files to installer
 
**************
*** Error: An internal tool or library returned an error. (Error code -21)
*** End Error Report
**************
 
 
**************
*** Error: Windows SDK function returned an error. (Error code -12)
*** End Error Report
**************
 

 

0 Kudos
Message 1 of 8
(4,713 Views)
Solution
Accepted by topic author chenghao

Hi chenghao,

 

The error messages you provided actually are rather generic ones, and as such it is quite difficult to troubleshoot the problem just based on that. I'd like to ask a few questions to help me to understand your problem better.

 

What version of LabVIEW are you using? Also, does the VI (or VIs) you want to compile into an executable run on its own from LabVIEW?

 

Perhaps it would help if you uploaded your VI and LabVIEW Project file (if you have one) as well as all other relevant files. If you do not have a LabVIEW Project, please show your configuration settings for the application.

 

Thanks and looking forward to your reply.

Best regards,
Vern Yew
Applications Engineer
Message 2 of 8
(4,661 Views)

Thanks alot for your reply, I am trying to build a installer in project,

you are correct, I checked the build settings and reconstruct the project, the error is gone now,

It's should caused by project setting issue,

thanks you for your direction.

 

0 Kudos
Message 3 of 8
(4,658 Views)

Hi chenghao,

 

I'm very glad to hear that it is now working for you.

 

I am still curious as to what may have caused this problem. Perhaps you could share with me the setting you changed? Or even better, if you have a copy of the project before it worked and after it worked, I would appreciate it if you could upload it here for me to see what changed.

 

Thanks.

Best regards,
Vern Yew
Applications Engineer
Message 4 of 8
(4,652 Views)

the attached are project file before and after fix the bug, acturly the file is converted from labview version 7.1 .bld. and I didn't correctlly config if for new project in 8.5.

 

Download All
0 Kudos
Message 5 of 8
(4,624 Views)

here is one more question need your help,

after my application installed on PC, there have a error report, said that"required a runtime engine", in the project builder properties, I select run-time engine in Additional installers, but the installer file is too large than before,

it's upto 74M, but only 5M without te run-time engine, is  there any way to reduce the program size for the run-time engine problem?

Thank you!

Message Edited by chenghao on 04-01-2009 02:42 AM
0 Kudos
Message 6 of 8
(4,620 Views)

Hi chenghao,

 

I'm afraid there is nothing you can do to make the runtime engine installer any smaller. An alternative could be to only build your application as an EXE and install the LabVIEW run-time engine separately on the target PCs. This way, you would only need to transfer the EXE file, although you would still need to install the run-time engine somehow on the target PCs.

 

I hope this helps.

Best regards,
Vern Yew
Applications Engineer
0 Kudos
Message 7 of 8
(4,609 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
(4,405 Views)