Customize and Automate Installation of a Single Installer

Updated Aug 29, 2018

Reported In

Software

  • TestStand
  • LabVIEW
  • Developer Suite
  • VeriStand

Driver

  • NI-DAQmx

Operating System

  • Windows

Issue Details

I have a single installer for NI software such as LabVIEW or TestStand, as opposed to a suited installer like NI Developers Suite. I may be interested in a silent installer or doing a massive install, upgrade or deployment. How can I customize and automate the installation of National Instruments software?

Solution


You can automate the installation of a single NI installer through the Windows Command Prompt. With a Command Prompt window open, change the working directory to the location containing the installation setup.exe file by entering the command cd <Path to the directory containing installation file>.

Once in the correct working directory, you can view the installer options at any time by entering the command setup /h.

Supported Installation Modes:
  • Silent: Lacks dialog box, GUI configurations, and a progress bar.
  • Basic: Silent Installation with a progress bar.
  • Basic Full: Lacks pre-install GUI, but shows a progress bar and post-install GUI elements such as the NI Activation Wizard. 
  • Customized: See the Customizing Installations section below.
To start one of these special modes, enter the corresponding command shown below:
  • Silent: setup /q /AcceptLicenses yes
  • Basic: setup /qb /AcceptLicenses yes 
  • Basic Full: setup /qf /AcceptLicenses yes
You may also choose to suppress or force rebooting your computer upon the completion of an installer in silent mode using the command line arguments listed below:
  • Suppress final reboot: /r, /r:n 
  • Force final reboot: /r:f

Customizing Installation:
National Instruments installers use a configuration file, called a spec file, as a replacement for the configuration dialogs. This spec file contains information about the user, serial number, which features to install and not install, etc.
  1. Create the spec file:
The installer can be run in a spec file generation mode.  In this mode, you can enter in user information, the serial number, and select each feature that you would like to have installed or not installed.  You can also leave fields to a default value.  You can run the installer in spec file generation mode using the following command: 
setup /generatespecfile <spec file name>.

The installation dialog will appear.  Instructions on the fields in each dialog exist at the bottom of the user interface.  Once you walk through all of the dialogues, a spec file will be created which you can use to install the software silently.
Note:  The spec file does not need to exist in advance. Please see Automating the Installation of NI Installers Version 2.4x and Lower.
  1. Running the installer with the spec file: 
The installer can be run with the spec file by using the following command:
setup /applyspecfile <spec file name> /q /AcceptLicenses yes
To see a list of available options in the command prompt, run setup.exe -help

Additional Information

This KnowledgeBase covers single product installers, such as LabVIEW. For suited installers, such as Developer Suite or Software Platform Bundle, please refer to the guide titled Customize and Automate Installation of a Suited Installer. Silent installations can automatically disable the Windows Fast Startup feature. For more information, refer to Hardware Not Detected or Not Functional After Updating Windows Version

Product Notifications: 
Installers whose setup.exe is version of 2.7 or greater (Right-Click » Properties » Details) will contact the NI server to check if a known issue will occur upon installation. If an issue will occur, the Installer will notify you and allow you to abort installation. You can modify the notification behavior by the following command-line flags:

/confirmCriticalWarnings 

This allows the installer to continue if critical warnings are found. This option does not allow installation to continue if fatal conditions are found. This command line argument is valid only when the silent installation option is used; otherwise it is ignored.


/disableNotificationCheck

This disables checking for product notifications.

    WAS THIS ARTICLE HELPFUL?

    Not Helpful