How to configure installation parameters using command-line
An enterprise systems administrator may want to automate the Windows Desktop app deployment.
To automate the app deployment the following scripts can be used:
Windows startup scripts;
Windows unattended scripts.
The Windows Desktop is distributed in the form of Microsoft Installer packages and supports all the standard Microsoft Windows Installer command-line parameters. (https://learn.microsoft.com/en-us/windows/win32/msi/command-line-options )
Additionally, an enterprise administrator can utilize the Windows Desktop app-specific configuration options.
Command-line parameters
Command-line option | Description |
/i | Specifies normal installation. |
/f | Repair installation. |
/a | Specifies administrative installation. |
/x | Uninstalls the package. |
/quiet | Quiet mode, no user interaction. |
CHECKUPDATE | Enable or Disable the automatic updates to the new versions, should be used together with the parameter ALLUSERS=1. |
<path_to_package> | Specify the location and name of the installation package file. |
/norestart | Stops the device from restarting after the installation completes. |
/promptrestart | Prompts the user if a reboot is required. |
/forcerestart | Restarts the device after the installation completes. |
Specifies the default launch option servername | |
PORTALID=XXXXXXXX | Specifies the default launch option portalid with the portal ID |
USER=USERNAME | Specifies the default launch option user with the username |
AUTH_TYPE= {[PASSWORD] | Specifies authentication type, PASSWORD for general app authentication, |
The command line must follow the below format:
msiexec.exe {/i | /f | /x}{[/norestart] | [/forcerestart] | [/promptrestart]} [/a] [/j{u|m|/g}] <path_to_package> [AUTH_TYPE= {[PASSWORD]| SAML]}[SERVER=SERVER.NAME] [PORTALID=XXXXXXXX] [USER=USERNAME]
Please read the article for more details on the format and commands interoperability.
Examples
Windows app can be updated to newer version without uninstall of previous version simply by command line
msiexec /i Setup.msi /qn
all users case (admin permissions needed)
msiexec /i Setup.msi ALLUSERS=1 /qn