LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code -21 while building an installer

I am getting the following errors when building an installer for my application, it seems like my system is missing some libraries. Any ideas how resolve those errors? I am using Labview 8.6. Thanks.

 

*** Error: An internal tool or library returned an error. (Error code -21)

Error Messages Input directory 'C:\Users\JLaham\Documents\Lab 213 Furnace\Installer\Lab213 Furnace Installer\Volume\bin\p10\MKL700' not found for part 'mkl.msi' in product 'C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests\Math Kernel Libraries {DB2C5648-700D-4AEF-83E1-70C72F0C34FA}.xml'.

 

Input directory 'C:\Users\JLaham\Documents\Lab 213 Furnace\Installer\Lab213 Furnace Installer\Volume\bin\p14' not found for part 'logos.msi' in product 'C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests\NI_Logos_5.2.1 {8A64A285-37B2-44F0-A019-2A3B589E52E0}.xml'.

 

Input directory 'C:\Users\JLaham\Documents\Lab 213 Furnace\Installer\Lab213 Furnace Installer\Volume\bin\p14' not found for part 'logos64.msi' in product 'C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests\NI_Logos_5.2.1 {8A64A285-37B2-44F0-A019-2A3B589E52E0}.xml'.

 

Input directory 'C:\Users\JLaham\Documents\Lab 213 Furnace\Installer\Lab213 Furnace Installer\Volume\bin\p9' not found for part 'tdms.msi' in product 'C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests\NI TDM Streaming 2.2 {6E60000F-D096-486B-A04D-3B823F7CC0B4}.xml'.

 

Input directory 'C:\Users\JLaham\Documents\Lab 213 Furnace\Installer\Lab213 Furnace Installer\Volume\bin\p9' not found for part 'tdms64.msi' in product 'C:\Program Files (x86)\National Instruments\Shared\MDF\Manifests\NI TDM Streaming 2.2 {6E60000F-D096-486B-A04D-3B823F7CC0B4}.xml'.

 

 

0 Kudos
Message 1 of 6
(2,960 Views)

Hi, there are different reasons for this error. Here is the list of issues vs solutions:

 

#1. Distribution builder cannot find the file. When there is a file that cannot be found. You can verify that the file is not found by looking at the Files tab in the Edit Installer dialog. The files that cannot be found will appear red. In order to correct this error, exit the Edit Installer dialog and place the missing files in the correct directory or add the files in their current location to the project.#2. Installer specifications file is corrupted.  For example, an old version of an installer specifications file could have been copied into the project. -Go to Tools>>Advanced>>Mass Compile and mass compile the directory where the error is located.  Mass compiling is necessary for VI compatibility with a particular version of LabVIEW.  If this does not work then delete the saved installer settings from the project window and create a new one with the same settings. #3. Additional installer components have been overwritten -Referring to the knowledge base “Why do I get a Missing Distribution Error when trying to build an installer from LV 8.0”, an installer build always refers to the original installer source.  For example, if you are using the NI-DAQmx driver (with additional component MAX 4.0) and later install Measurement Studio (With additional component MAX 4.1) this will cause an error because the installer is still referring to MAX 4.0.  Point the installer to the original content on the driver-cd or the hard drive. #4. Installing drivers before you installed LabVIEW or Updating your drivers -The same driver and LabVIEW version, which the VI was written in, must be used to build a functioning installer.  If an upgrade has occurred then make sure to include updated versions of the run time engine and driver.  The driver and LabVIEW versions can be upgraded , in which case you can include the updated version of the driver and run time engine when you try to include additional installers.  Make sure that the driver is properly installed for the specified version of LabVIEW in order to upgrade code for new drivers and software.  Make a back up of your current project for reference.  Open the project in the specified version of LabVIEW and go to Tools>>Advanced>>Mass Compile and mass compile your code. I hope this can help you to solve yor problem. Have a great day, Miguel FonsecaApplicationsEngineerNational Instrumentshttp://www.ni.com/support
0 Kudos
Message 2 of 6
(2,941 Views)

Thanks Mike for you reply, but none of your suggestions resolved this issue. see the answer to each suggestion below:

 

  1. There is no file tab in the installer dialog. If you are referring to source files, there is no files marked in red and they are all available.
  2. According to the error log above, the error is happening in a file, and it cannot be mass compiled.
  3. I am not getting missing distribution error, I am getting the errors above, so the knowledge base you referring me to does not address those errors.
  4. Labview was installed first then the drivers.
0 Kudos
Message 3 of 6
(2,920 Views)

Hello j_sd,

 

I'd like to know a little bit more about your system setup:

 

Which version of LabVIEW are you working with?

Can you please send me a lis of drivers that you have installed on your computer?

 

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?

 

I found this KB that can also help us to find a solution for this error. We can use the steps listed on this second KB to try to find a solution for this error.

 

Best regards,
Mike
National Instruments
Applications Engineering
http://www.ni.com/ask

0 Kudos
Message 4 of 6
(2,908 Views)

Hello Mike,

 

I am using Labview 8.6

See image for installed software and drivers on my system, I only have DAQmx 8.9.5 installed

 

Installed software.JPG

This is a new project. The application runs with out any errors from the develpement enviornment.

In my build specification the only additional software I am including is LabView runtime engine 8.6.1 which is causing the error. I beilieve it is the right location. see image below

 

run time.JPG

 

I do not think that the knowledge base you refering to applies in this case, since the application works with out any problems, it is only the installer builder is not working.

 

Regards,

 

 

0 Kudos
Message 5 of 6
(2,901 Views)

Hi,

 

I have a few more troubleshooting steps for you:

1)      Have you tried repairing your LabVIEW installation? If not, please do so to eliminate the possibility of this is the problem.

When I say repairing LabVIEW, I am referring to repair through Add/Remove Programs. If you have already repaired or re-installed, then do not worry about this troubleshooting step.

2)      Have you tried building the installer on another computer? Please do so if possible.

 

3)      If you can’t build it on another computer, we recommend uninstalling all of your National Instruments software. 

When you begin to re-install software, please install all of the software that you need directly from the CDs. If don’t have the CD’s, please download the evaluation version and activate it with your serial number for you product.

LabVIEW 8.6 Evaluation Software Download 

Remember to install software in the following order: 
1) LabVIEW 
2) Modules 
3) Toolkits 
4) Drivers 

 

4)      Configuring   Software and Hardware Firewalls to Support National Instruments  Products 

 

 

 

Best Regards

Miguel Fonseca

Applications Engineer

National Instruments

http://www.ni.com/support

0 Kudos
Message 6 of 6
(2,885 Views)