# Automating an Installer

Automate the unattended or silent installation of an online installer, offline installer, or Package Manager using the command line interface (CLI).

To make the installation process non-interactive, include the --passive flag at the command prompt. Unattended mode is not fully silent. Status dialogs appear during the installation process, but you do not need to interact with them. You can use this mode when installing from a script or the command line.

To make the installation process fully silent, include the --quiet flag at the command prompt. This option prevents Package Manager from displaying visible dialogs or taskbar icons during installation.

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.

Complete the following steps to automate the unattended installation of an online installer, offline installer, or Package Manager.
Note

This process supports Package Manager 19.6 and later. For more information on how to automate Package Manager installation for previous versions, see this KnowledgeBase article.

1. Navigate to ni.com/downloads and search for the product you want to install. If you are installing Package Manager, navigate to the Package Manager download page.
2. Select the product version, edition, and driver software you need, if applicable.
3. Determine the installer type you need and complete the corresponding steps to download and run the installer.
Online
Note
• Installers of this type always download as an .exe and are typically under 10MB.
• There are products that do not offer an online installer option.
2. Ensure the installer is an executable.
3. Run Command Prompt as an administrator and pass the following command and flags.
start /wait "name of installer.exe" --passive --accept-eulas --prevent-reboot

For silent installation, use the --quiet flag instead of the --passive flag.

start /wait "name of installer.exe" --quiet --accept-eulas --prevent-reboot
Offline
Note

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

• 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 commands and arguments.
start /wait "name of installer.exe" --passive --accept-eulas --prevent-reboot

For silent installation, use the --quiet flag instead of the --passive flag.

start /wait "name of installer.exe" --quiet --accept-eulas --prevent-reboot
Package Manager
• Click Individual Offline Installers to download an offline installer for a specific version of Package Manager.
2. Run Command Prompt as an administrator and pass the following command and flags.
start /wait "name of installer.exe" --passive --accept-eulas --prevent-reboot

For silent installation, use the --quiet flag instead of the --passive flag.

start /wait "name of installer.exe" --quiet --accept-eulas --prevent-reboot
4. Pass the following command to verify the 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 installed the package but are required to reboot your machine. For all other return codes, visit ni.com/support.

## Troubleshooting

If the steps above fail, you may be using a format of the installer that is no longer supported. Go to ni.com/downloads to find the updated format of the installer. Download the installer again and retry the steps above.