NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy error -40 and HS-DIO 181 update

(To who it may concern)

 

After the update of HS-DIO 181 (runs via NI Update Service) we was unable (on all company machine and OS XP/Vista/7) to performs deployment (using deployment utility but I guess that this problem can occur also on the other deployment utility LV & CVI) using previously made deployment configuration that operate correctly (installers were created correctly).

 

This is the message coming out from utility:

**************

*** Error: Internal error. (Error code -40)

**************

*** Error Details:

Error in MDF API function: _MDFDistCopyList_GetCount

Volume number 3 is too high. The number of volumes is 1.

*** End Error Report

**************  

Done building deployment Internal error code -40 Making an installer, please wait... TestStand - Deployment Utility Splash Screen.vi >> TestStand - Distribution Wizard GUI.vi >> TestStand - Build.vi >> TestStand - Create Meta Installer.vi >> TestStand - Build Meta Installer.vi >> TestStand - Copy Meta Installer Parts to Cache.vi >> MDFDistCopyList_GetIAlltemsInfo.vi >> MDFDistCopyList_GetCount.vi

The installer is finished

 

Looking into Detailed_Installer.log' we found (last rows before error):

... > Preparing to build deployment

    [DISKCOPY BEGIN]  Sat Oct 13 16:46:32 2012

> Copying products from distributions Calculating layout of products on volumes. Media spanning is not enabled. Estimated initial media cost: 86563784 ...

Getting disk information for NI Measurement Studio Visual C++ Common Libraries for the MFC 8.0      Product path: Products\NIVcppCommon2005\      Product is on disk with id '{14508501-4F37-4E2F-9ACD-30E0408D8DF2}', volume 3

 

Locking into registry we found this info regarding the package code reported form log:

NI-HSDIO 1.8.1 1.81.49153

Package GUID: {14508501-4F37-4E2F-9ACD-30E0408D8DF2}

Distribution GUID: {A3CDDB38-1FC4-4506-A416-5BDE88B1E748}

 

With a deep loock into the installer files we found that the HS-DIO update is constituted by 3 volumes but with a more advanced analysis of related registry keys we found that in effect into the registry there is reported just 1 volume and not the effective 3.

 

So it is necessary to patch into registry in order to ad the other 2 subkey related to the missing volumes.

 

Unfortunately some keys varies form machine to machine and it is not possible to publish a path.

 

I report here the "example" of registry modification to add wher the <ID key>s are masked:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\Common\Installer\Suites\<ID key1>\Distributions\<ID key2>\DistVolume2] "DistVolume"=dword:00000002

"SuiteVolume"=dword:00000001

"RelPath"="C:\\ProgramData\\National Instruments\\Update Service\\Installers\\NI-HSDIO 1.8.1 1.81.49153\\NIHSDIO1812\\"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\Common\Installer\Suites\<ID key1>\Distributions\<ID key2>\DistVolume3] "DistVolume"=dword:00000003

"SuiteVolume"=dword:00000001

"RelPath"="C:\\ProgramData\\National Instruments\\Update Service\\Installers\\NI-HSDIO 1.8.1 1.81.49153\\NIHSDIO1813\\"

 

Clearly after this modification the deployment runs well and the installer was created.

Probably the error was due to an incorrect information registered by the HS-DIO update during its installation.

 

Sincerely

 

 

Luigi Magni (System Engineer - CTA)
0 Kudos
Message 1 of 3
(2,984 Views)

You'll probably want to uninstall and reinstall the HSIDO driver.

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 3
(2,972 Views)

Hi Swnopunter,

 

the driver was downloaded by NI Update Service and reinstalling them from the folder doesn't solve the problem, furthermore this happened in several different PC with different OS.

 

Sincerely

 

 

Luigi Magni (System Engineer - CTA)
0 Kudos
Message 3 of 3
(2,964 Views)