How to install NoMachine on Windows in silent or verysilent mode
This article applies to NoMachine 4 and later versions. If you wish to install any of the NoMachine packages without having any Windows dialogs shown during the installation, you can run the installation from command line and use the silent or verysilent switch.
How to install
From a CMD console:
- Move to the folder where you have downloaded the NoMachine package.
-
Install the package by running:
>nomachine-packageName_packageVersion.exe /silentor:
>nomachine-packageName_packageVersion.exe /verysilentFor example:
>nomachine_7.4.1_1.exe /verysilent
-
Installation is completed when you see your prompt back.
-
Reboot the machine (it's necessary to complete the installation of the server, so if you are installing the nomachine-enterprise-client, you can omit this step):
>shutdown /r /t 10 /c ” your comments here”You can find more information about how to use the remote shutdown tool here: http://support.microsoft.com/?kbid=317371
To specify a non-default installation directory, use:
nomachine-packageName_packageVersion.exe /SILENT /DIR="X:Target_directory"
or:
nomachine-packageName_packageVersion.exe /VERYSILENT /DIR="X:Target_directory"
For example:
nomachine_7.4.1_1.exe /SILENT /DIR="X:Target_directory"
or
nomachine_7.4.1_1.exe /VERYSILENT /DIR="X:Target_directory"
Note for Windows XP: the NoMachine server will not start until the machine is rebooted.
Skipping the installation of USB modules
Since NoMachine version 6.7.6, the setup procedure for Windows, when executed manually, accepts a command line option to skip the installation of NoMachine USB modules:
nomachine-packageName_packageVersion.exe /usbinstall="0" /silent
or:
nomachine-packageName_packageVersion.exe /usbinstall="0" /verysilent
Next updates via command line will still require to specify the usbinstall=0 option to skip the installation of USB modules. If you don't specify it, the USB module will be installed.
Updates via package manager or NoMachine automatic software updates will install the USB module.
Skipping the installation of printers
Since NoMachine version 7.9.2, the setup procedure for Windows, when executed manually, accepts a command line option to skip the installation of printers:
nomachine-packageName_packageVersion.exe /printerinstall="0" /silent
or:
nomachine-packageName_packageVersion.exe /printerinstall="0" /verysilent
Next updates via command line will still require to specify the printerinstall="0" option to skip the installation of printers. If you don't specify it, printers will be installed.
Updates via package manager or NoMachine automatic software updates will install printers.
How to uninstall
From a CMD console:
-
If you are on Vista/7/8/10, move to:
C:/ProgramData/NoMachine/var/uninstall/if you are on XP instead, move to:
C:/Documents and Settings/All Users/NoMachine/var/uninstall/
-
Uninstall NoMachine software by running:
>unins000.exe /silentor:
>unins000.exe /verysilent
-
Uninstalling is completed when your command prompt is back.
-
Then reboot the machine:
>shutdown /r /t 10 /c ” your comments here”
