# Automating an Online or Offline Installer

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.

Online
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.
2. Ensure that the installer is an executable before proceeding.
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
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.
Note

The higher version is a patch.

• Click the title of the latest version of the product you are installing.
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%.
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.