Our .exe is built using NSIS (Nullsoft Scriptable Install System). If you are an advanced user and would like more documentation, it can be found here: https://nsis.sourceforge.io/Docs/
The examples below use GMetrixSMSe-v7.0.24.exe. Be sure to use the actual name of your executable for the commands that you decide to use. All commands are case-sensitive.
- Below are the common options for deploying silently using Command Line Options.
- GMetrixSMSe-v7.0.24.exe /S
- This command will install the specified executable silently.
- The default install directory is C:\Program Files (x86)\GMetrix\GMetrix SMSe
- GMetrixSMSe-v7.0.24.exe /S /D="Your GMetrix install path here"
- GMetrixSMSe-v7.0.24.exe /S
Example: GMetrixSMSe-v7.0.24.exe /S /D=C:\Program Files (x86)\GMetrix\GMetrix SMSe
- This command will silently install the specified executable at the directory you set, overriding the default location.
- /D sets the default installation directory, overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.
- Uninstall GMetrix SMSe.exe /S _?="Your GMetrix install path here"
- This command will silently uninstall the specified executable at the directory the software was installed at.
- After GMetrix is installed, there will be an uninstall executable located in the install directory of the software.
- _?= sets $INSTDIR. It also stops the uninstaller from copying itself to the temporary directory and running from there. It can be used along with ExecWait to wait for the uninstaller to finish. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces.
Example: Uninstall GMetrix SMSe.exe /S _?=C:\Program Files (x86)\GMetrix\GMetrix SMSe
Most mass deployment software solutions should accept command line options for the given installer.
Below is an example using PDQ Deploy to set the command line options for the GMetrix installer.
Here is an example of deploying through the windows command line.
Be sure to execute the command in the directory that the installer is located in. In this example, it is in the users downloads folder.