Installer Cannot be Added to NI Batch Installer Builder

Updated Aug 16, 2018

Reported In

Software

  • Batch Installer Builder

Issue Details

When trying to load the components into the Batch Installer Builder, an error occurs saying that the older installer cannot be added to the library without modification:

Solution

Older software may have missing checksum files and need to be generated or updated. Follow the procedure below fully to solve the issue:

Modify updateInfo.xml

To generate/modify a checksum file for older software:

  • Open the nidist.id file for the software and add the following lines:
    • TotalNumberOfVolumesInDistribution=n (where n in this case would be 1)
    • MD5ChecksumFile=SupportFiles\dist_md5_1.xml
  • Open the updateInfo.xml file and add the following BEFORE the </client> line:
    • <distributionTitles> 
      <distributionTitle language="0009">Analog Waveform Editor</distributionTitle> 
      </distributionTitles> 
      <distributionSize>x</distributionSize>
      • Where x is the size of the entire distribution in bytes (right click on the main folder for the product that contains all of the installation files, and go to Properties. There you will see the total number of bytes for the folder).
  • Navigate to the NI Batch Installer directory (C:\Program Files (x86)\National Instruments\Batch Installer Builder) in the command prompt, and run the following script:
    • nifciv -startDir <full path to folder containing the setup.exe> -xmlPath <full path the the SupportFiles folder and then \dist_md5_1.xml>
Update MD5 file
  1. Locate NIFCIV.exe in <Program Files (x86)>\National Instruments\Batch Installer Builder. You will run this executable from the command line in step 3.
  2. In nidist.id, find the MD5ChecksumFile. Note the relative path to the XML file. You will use this path in step 3 as the xmlPath parameter.
  3. You need to generate new checksums for the modified files, nidist.id,and updateInfo.xml.  
    1. Generate checksum from the command line for updateInfo.xml:
      "C:\Program Files (x86)\National Instruments\Batch Installer Builder\nifciv.exe" -startDir "<full path to installer root directory>" -xmlPath "<full path to dist_md5_1.xml (MD5 file)>" -filepath "<full path to updateInfo.xml>"
    2. Generate checksum from the command line for nidist.id:
      "C:\Program Files (x86)\National Instruments\Batch Installer Builder\nifciv.exe" -startDir "<full path to installer root directory>" -xmlPath "<full path to dist_md5_1.xml (MD5 file)>" -filepath "<full path to nidist.id>"

WAS THIS ARTICLE HELPFUL?

Not Helpful