How to Select Which Features to Install with Custom Automated Installer

Updated May 3, 2018

Reported In

Software

  • LabVIEW
  • TestStand
  • VeriStand

Driver

  • NI-VISA
  • NI-RIO
  • NI-DAQmx

Issue Details

We need a customized and automated version of a National Instruments' installer. We use the command "/generatespecfile" and then select only the Features we want to be installed. But somehow the installer still installs all available packages?

Solution

While creating the spec file using setup.exe /generatespecfile, be aware that the preselected installation mode is Default. The default setting of most Features is to install them.

If you want a feature to be not installed, you need to set it explicitly to Do not install this feature. There might be more than one option.

This example screenshot is taken from NI-VISA Runtime's setup.exe executed with option /generatespecfile:

Additional Information

The configuration lines of the corresponding Features will look differently inside the generated spec file, i.e.:
[Features] 
Ethernet.VSARU=NoChange
Serial.VSARU=Local 
USB.VSARU=
Remote.VSARU=Absent
Local will install a feature, NoChange will not install it, Absent will not install but remove it (if present), and nothing ("USB.VSARU=" in the example above) or a completely missing line will select the default installation type.

WAS THIS ARTICLE HELPFUL?

Not Helpful