Table Of Contents

Automating an Online or Offline Installer

Last Modified: August 2, 2019

Automate the silent installation of package or suite installers using the command line interface (CLI).

An online installer is a lightweight executable containing no packages in itself, but installs a product by downloading the necessary packages from the internet. An offline installer contains the complete set of packages needed for the product, which are bundled into a one-time download. Since offline installers contain the complete contents of software, it typically takes longer to download.

Package installers and suite installers differ only in the number of products that can be selected to install. Suite installers contain multiple products that you can choose to install, and a package installer just includes one product.

Complete the following steps to run an online or an offline installer silently.
  1. Navigate to ni.com/downloads and search for the product you need to install.
  2. Select the product version, edition, and driver software you need if applicable.
  3. Determine whether you are downloading an online or an offline installer and complete the corresponding steps to download and run the installer you need.

Installer Type Steps to Download and Install
Online
spd-note-note
Note  
  • Installers of this type always download as an .exe and will typically be under 10MB.
  • There are products that do not offer an online installer option.
  1. Click Download if an online installer is available.
  2. Ensure that the installer is an executable before proceeding.
  3. Run Command Prompt as an administrator and change to the directory in which you downloaded your installer using the cd command.
    For example:
    cd %temp%
  4. Pass the following command to extract the PreInstall.exe:
    Your command will look similar to the following example:
    <name of preinstaller> /C /T:"<Drive>:\<existing>\<folder>"
    Your command will look similar to the following example.
    ni-labview-nxg-3.0.0_6.2_suite_online.exe /C /T:"C:\Users\jdoe\Downloads"
  5. Pass the following command and flags to silently automate the installation of the package.
    start /wait PreInstall.exe --passive --accept-eulas --bootstrapper --prevent-reboot
Offline
spd-note-note
Note  

Installers of this type can download as a larger .exe, .iso, or .zip file.

  1. Download an offline installer in one of the two following ways.
    • Click Individual Offline Installers if available.
      1. Select one of the offline installer options.
        spd-note-note
        Note  

        The higher version is a patch.

      2. Click Download.
      3. Proceed once the installer has finished downloading.
    • Click the title of the latest version of the product you are installing.
      1. Click the download link to download your offline installer.
      2. Proceed once the installer has finished downloading.
  2. Run Command Prompt as an administrator and change to the directory in which you downloaded your installer using the cd command.
    For example:
    cd "C:\Users\lvadmin\downloads"
  3. Pass the following command to extract the Install.exe:
    Your command will look similar to the following example:
    <name of preinstaller> /C /T:"<Drive>:\<existing>\<folder>"
    Your command will look similar to the following example.
    NIPackageManager18.5.1 /C /T:"C:\Users\jdoe\Downloads"
  4. Pass the following commands and arguments to silently automate the installation of the package.
    start /wait Installer.exe --passive --accept-eulas --prevent-reboot

  1. Pass the following command to verify that installation was successful: echo %errorlevel%.
    spd-note-note
    Note  

    A return code of 0 indicates that you successfully installed the package, and a return code of -125071 indicates that you have installed the package but are required to reboot your machine. For all other return codes, contact technical support.


Recently Viewed Topics