NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error code -40 in teststand deployment

Solved!
Go to solution

I just got a new laptop and installed all NI products including TestStand that I had in my old laptop. Using the same deployment file that I had on the old laptop, I run the deployment utility and get the following errors.  What am I doing wrong ?: 

 

Starting Log.
Done processing workspace file
Finished Analysis
Building...
3:34 PM
An installer is being created.
Loading product deployment information
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'NI DataFinder Destop Edition'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\NI DataFinder Destop Edition {7D5297CE-E2B6-458C-91F4-47F674A94A8F}.xml
 
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'NI DataFinder'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\NI DataFinder {D6B1E623-A952-421A-9C50-1958A056C63B}.xml
 
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'NI DIAdem'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\NI DIAdem {2C52C774-1B40-4848-95EF-735D22EF9203}.xml
 
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'NI DIAdem'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\NI DIAdem {3CB2BF3F-9C33-477B-8D99-251491541ED1}.xml
 
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'SignalExpress Steps'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\SignalExpress Steps {84172037-613A-4B72-B797-E36C04BA5D17}.xml
 
 
**************
*** Error: Internal error. (Error code -40)
There was a problem getting information about the source distribution for product 'SignalExpress_App'
*** End Error Report
**************
 
 
*** WARNING ***
Skipping deployment information for an unidentified product because error code -40 occurred while loading file: C:\Program Files\National Instruments\Shared\MDF\Manifests\SignalExpress_App {8169D9AA-A2DE-4EA0-BF27-2E7D1CF52D87}.xml
 
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
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:\documents and settings\all users\application data\national instruments\mdf\productcache\ni labview c interface [1.0.1]\lvcinterface\lvcinterface.msi" was included by 2 products: 'NI LabVIEW C Interface' and 'NI LabVIEW C Interface'


*** End Error Report
**************
 
Done building deployment
Internal error code -21 An installer is being created.
The installer is finished
The build is finished
3:35 PM
Aborted

0 Kudos
Message 1 of 10
(6,171 Views)

HPatel,

 

Are you installing the same version of all of the software you had on your old computer?

 

The log files seem to indicate that it is looking for certain files in your Manifests folder relating to three different products (NI DataFinder, NI DIAdem and SignalExpress).  What version of this software do you have installed?  To find this information, open up Measurement and Automation Explorer (MAX).  MAX is in your Start->Programs->National Instruments folder.  In MAX, expand the software tab.  You should see a listing for DIAdem and NI LabVIEW SignalExpress.  DataFinder is installed along with DIAdem, so we can't find that here.  If DataFinder is running, there will be a yellow gear icon in your system tray.  Right-click on that icon and select About My DataFinder... to find the version number.

 

Also, are you able to create a new deployment successfully (not using your saved file) or does that fail as well?

 

Once we get this all figured out, it will be easier to diagnose your problem.

Eric B.
National Instruments
0 Kudos
Message 2 of 10
(6,144 Views)

Hi Eric,

Please see attached snapshot of Software in NI MAX. It appears I have DIAdem 11.0 (Trial) and SignalExpress 3.0 installed. There is a gear in the taskbar and the Data Finder version is 2.0.0f3435. I am not using the DIAdem, but I installed it to ensure everything that was installed in my old laptop is installed on my new one. How can I find out what version it is looking for or what needs to be installed ? Also, I did repair several times on all the NI software I have installed on this new laptop and still the same problem.

 

Appreciate any help you can provide,

Hetal

0 Kudos
Message 3 of 10
(6,140 Views)
Ok, thanks for the info.  Are you able to create a new distribution?  Or does the same error happen as when you are trying to build this saved distribution?
Eric B.
National Instruments
0 Kudos
Message 4 of 10
(6,136 Views)

It does not create the entire distribution. It seems like it aborts in the middle. It creates the Setup.exe, but not the setup.ini so I can't install it on another computer. I tried to create a new distribution file, but used the same workspace file and it gave me the same errors. I will have to try to create a new workspace file to see if it helps. 

 

Hetal

0 Kudos
Message 5 of 10
(6,130 Views)

HPatel,

 

I'd like to get a little more information before we continue.  Can you send me a MAX report from both your new laptop and your old computer?  A MAX report can be generated by opening Measurement and Automation Explorer (Start->All Programs->National Instruments->Measurement & Automation), going to File->Create Report..., selecting Technical support as the report type, clicking Next >, clicking Next > again, selecting a file location, clicking Next >, then clicking Finish.  Take both of these reports and post them here on the forum.

 

I also need two log files that would be helpful to the developers to figure out what is going wrong.  First, we need the Detailed Installer log found in your temp directory.  Open up your Run window (Start->Run or Windows key + R) and type "%temp%" without the quotes.  In the folder that opens, find the Detailed_Installer.log file.  This file will be very large.  Copy this file and attach it to your post as well as the MAX reports.  The last file is a log created by the Deployment Utility.  To find this file, find your TestStand directory (usually C:\National Instruments\TestStand x.x.x, where "x.x.x" is your version number).  Open the Cfg folder.  The file of interest is DeploymentUtility.log.

 

Attach these four files (MAX report from old system, MAX report from new system, Detailed_Installer.log and DeploymentUtility.log) to a post so we can take a look at them.

Eric B.
National Instruments
0 Kudos
Message 6 of 10
(6,102 Views)

Hi Eric,

I removed the "C:\Program Files\National Instruments\Shared\MDF\Manifests" directory and repaired all NI software and it has helped to eliminate the errors I had originally. I think what had happened is the files in the Manifests folders were copied from my old laptop since I used the Files and Settings Transfer wizard. But now, I am getting this error although I am able to build the deployment:

 

Loading product deployment information
 
**************
*** Error: Improper function call or command line argument. (Error code -30)
*** End Error Report
**************
 
Adding files to installer

0 Kudos
Message 7 of 10
(6,088 Views)

Hey HPatel,

 

Glad to hear that your application is building.  Does the deployment run correctly when you try to run the installer on another computer?

 

Can you post the full log please?

 

Thanks for all the information...hopefully we can get this resolved quickly.

Eric B.
National Instruments
0 Kudos
Message 8 of 10
(6,073 Views)
Solution
Accepted by HPatel

HPatel,

 

I found some more information about your error code.

 

When you build a deployment, you have the option to cache information about the additional installers you include in your deployment so you don't have to insert the disk each time.  This error code means that the deployment utility is looking for cached information to add for your additional installers, but it can't find it.  Clear out everything in your cache folders (C:\Program Files\National Instruments\Shared\ProductCache and/or C:\Documents and Settings\All Users\Application Data\National Instruments\MDF\ProductCache) and build again.  The deployment utility should ask for any disk it needs to add to the installer, and it will create a new cache.

Eric B.
National Instruments
Message 9 of 10
(6,068 Views)

Thank you for all your help Eric. The second error went away as soon as I cleared the ProducCache folders per your suggestion.

 

Hetal

0 Kudos
Message 10 of 10
(6,060 Views)