Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I get an error -21 when building an installer in windows

HI

 

I have a problem with the application builder. When I want to make an installer of my application (EXE) I get this error:

 

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
Loading product deployment information
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
Copying distribution 'LabVIEW 8.6, Disk 1' from: C:\National Instruments Downloads\LabVIEW\8.6\English\LabVIEW860\ to: C:\Users\Administrator\Desktop\Test\KDS installer\
Building deployment
Copying setup files
Setting merged database information
Setting product information
Setting developer part information
Starting final build
 
**************
*** Error: An internal tool or library returned an error. (Error code -21)
Error Messages
Error: Part at path "c:\program files\national instruments\shared\productcache\ni labview rutime engine [8.2.1]\lv82rte\lv82runtime.msi" was included by 2 products: 'NI LabVIEW Run-Time Engine 8.2' and 'NI LabVIEW Run-Time Engine 8.2.1'


*** End Error Report
**************
 
Done building deployment

 

 

Can someone tell me what to do about this error?

 

I'm running LabVIEW 8.6 with NI-DAQmx 8.8 drivers (for my USB-6008)

I also included the drivers in my installation because I need them

 

thanks

Reggi

 

WOEPS, can A Moderator pls replace this to the LabVIEW topic?

I placed this post in the wrong section

Sorry

Message Edited by Reggi on 08-27-2009 09:34 AM
0 Kudos
Message 1 of 3
(3,852 Views)

Hello Reggi,

 

 

Error 21 is one of the more general error. It's not the easiest one to troubleshoot.

Mostly is referring to wrong file paths (including DLL's when using Call Library Function Node).

 

Strange thing is that you have a LabVIEW 8.6 project, but the error is referring to the LabVIEW 8.2.x Run-Time Engine.

Normally the project should use the LabVIEW 8.6 Run-Time Engine.

 

Is this an upgraded project?   Does the application run without warnings/erros from within the LabVIEW Development environment?

Can you check if your Build Specifications include all the correct paths to the needed files?

 

Alternatively you may include your project files so we can help you troubleshoot.

 

 

Best regards,
Joeri

National Instruments
Servicesg
0 Kudos
Message 2 of 3
(3,771 Views)
0 Kudos
Message 3 of 3
(3,758 Views)