LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer build error code-21 Labview 8.6.1

While attempting to build an installer I get an error code -21. What is the error and how do I correct it?
0 Kudos
Message 1 of 3
(3,476 Views)
TEC 2-

I have a few additional questions about your application:

1. Does the VI you created in LabVIEW 8.6.1 work correctly?
2. Does the exe file you created work correctly?
3. Are you calling DLLs or other files with this exe?
4. If so, do those files call any other files?  This is typically why this error occurs.  The files that are called by the DLLs also need to be included in the build.
5. Please provide the whole error.  A screen shot would be ideal.
Regards,

Mike S
NI AE
0 Kudos
Message 2 of 3
(3,446 Views)

I also have this problem.  The executable build itself works correctly, but the installer fails to build.  There are a number of DLL dependencies, but they are all included and present in the build and in the installer Source Files.  I put CDK.EnableLog=True in my LabVIEW.ini and logged the error from the installer build process.  Here is an excerpt from the relevant section:

 

 
    [LOG ON]  Fri Apr 30 13:46:02 2010
<<<MDFConfig_SetDeveloperLanguage>>> Language id: 9
<<<MDFConfig_SetDistributionLanguage>>> Language id: 9
<<<MDFConfig_SetBuildDir>>> Build directory: C:\MyPrograms\MyApp_Working\Install
<<<MDFConfig_SetBuildMode>>> Build mode: 1

    [NMDK BEGIN]  Fri Apr 30 13:46:02 2010
     Building developer part


> Adding files to installer
<<<MDFBuildDevPart_SetFileNames>>>
<<<MDFBuildDevPart_SetDefaultInstallDir>>>
<<<MDFBuildDevPart_SetUpgradeInfo>>>
<<<MDFBuildDevPart_SetOtherProperties>>>

>  
> **************
> *** Error: An internal tool or library returned an error. (Error code -21)
Error in MDF API function: _MDFBuildDevPart_SetOtherProperties
nmdkSetInformationalProperties returned error code 26024

> *** End Error Report
> **************
>  
Adding product dependencies to developer part

>  
> **************
> *** Error: Windows SDK function returned an error. (Error code -12)
Closing dist kit
***** About to begin MAXImportConfig::DoMAXPartModifications...
No MAX import files specified - nothing to do - returning.
Error in MDF API function: _MDFBuildDevPart_Close
Error in MDF::BuildDeveloperPart::Close.
ERROR: Caught MSI Exception:
<Unable to format error record.>
MSI error code: 6

> *** End Error Report
> **************
>  
    [LOG OFF]  Fri Apr 30 13:46:02 2010

    [MDF END]  Fri Apr 30 13:46:02 2010
     Closing MDF.

 I've also tried the same with a simple test application and it build/installs correctly, so I know it is my project somehow.  One notable difference is that I previously had namespace conflicts in the executable build that were resolved by the following these instructions:

 

http://digital.ni.com/public.nsf/allkb/47272B69E2C167DB862574AC006A258B?OpenDocument

 

I hope someone can help.  I need to deploy this application soon.

 

Regards,

 

- Ray

 

0 Kudos
Message 3 of 3
(3,251 Views)