Automating an Installer
- Updated2026-07-23
- 4 minute(s) read
Automate the unattended or quiet 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 option at the command prompt. Unattended mode is not fully quiet. Status dialogs appear during the installation process, but you do not need to interact with the messages. You can use this mode when installing from a script or the command line.
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 bundles a complete set of packages for the product into a one-time download. Offline installers contain the complete contents of software and so take longer to download.
- Navigate to ni.com/downloads and search for the product you want to install. If you are installing Package Manager, navigate to the corresponding download page.
- Select the product version, edition, and any necessary driver software.
- Determine the installer type you need and complete the corresponding steps to download and run the installer.
Selecting an Online Installer Type
- Click Download if an online installer is available.
- Ensure the installer is an executable.
- Run Command Prompt as an
administrator and pass one of the following commands and options:
-
start "" /wait "path of install.exe" --passive --accept-eulas --prevent-reboot
- For quiet installation, use the --quiet option instead of the --passive
option.
start "" /wait "path of install.exe" --quiet --accept-eulas --prevent-reboot
The following options are not required when using the --passive option or the --quiet option:
- To make the installation process skip any license activation,
include the --prevent-activation
option in the command
prompt.
start "" /wait "path of install.exe" --prevent-activation
Note You must still perform license activation for any products that require a license. - To prevent the installation process from displaying a completion
prompt, include the --hide-completion option at the command
prompt.
start "" /wait "path of install.exe" --hide-completion
- To install Package Manager passively, but require user interaction
later in the installation, include the --autoinstall-nipkg option in the command
prompt.
start "" /wait "path of install.exe" --autoinstall-nipkg
-
Selecting an Offline Installer Type
This type of installer downloads as an .iso file. You must either mount the .iso file or extract all of the files to a local directory before launching the installer. The NI Package Manager offline installer downloads as an .exe file and you can use the same command-line when launching that executable.
- Download an offline installer in
one of the following ways.
- Click Individual
Offline Installers if available.
- Select one of the
offline installer options. Note Product versions with a higher value in the third field of a version include patch fixes. For example, 23.0.1 has a patch fix for version 23.0.
- Click Download.
- Wait until the installer finishes downloading before completing the next step.
- Select one of the
offline installer options.
- Click the title of the
product you are installing.
- Ensure that the title represents the latest version of the product.
- Click the download link to download your offline installer.
- Proceed once the installer has finished downloading.
- Click Individual
Offline Installers if available.
- Run Command Prompt as an administrator.
- Change to the directory in which you downloaded your installer using the
cd command. The following is an example.
cd "C:\Users\lvadmin\downloads"
- Pass one of the following commands
and arguments:
-
start "" /wait "path of install.exe" --passive --accept-eulas --prevent-reboot
- For quiet installation, use the --quiet option instead of the --passive
option.
start "" /wait "path of install.exe" --quiet --accept-eulas --prevent-reboot
The following options are not required when using the --passive option or the --quiet options.
- To make the installation process skip any license activation,
include the --prevent-activation
option in the command
prompt.
start "" /wait "path of install.exe" --prevent-activation
Note You must still perform license activation for any products that require a license. - To prevent the installation process from displaying a completion
prompt, include the --hide-completion option at the command
prompt.
start "" /wait "path of install.exe" --hide-completion
- To install Package Manager passively, but require user interaction
later in the installation, include the --autoinstall-nipkg option in the command
prompt.
start "" /wait "path of install.exe" --autoinstall-nipkg
-
Verifying the Installer
- A return code of 0 indicates that you successfully installed the software.
- A return code of -125071 indicates that you successfully installed the software but you must reboot your machine.
- A return code of -126300 indicates that you only installed Package Manager. You must reboot your machine and then rerun the installer to complete the software installation.
Troubleshooting
start "" "path to install.exe" /?
Related Information
- Software and Driver Downloads
- Package Manager Download
- Troubleshooting Problems with Installing, Updating, Repairing, or Removing NI Software
The following table explains potential causes for problems you may encounter while installing, updating, repairing, or removing NI software using Package Manager.
- Automating the Unattended Installation of NI Package Manager