Help usage
Installer Options
The Notepad++ installer executable accepts the three NSIS command-line options:
/S: Enables silent installation./NCRC: Skips the installer’s CRC check./D=c:\blahor/D=c:\path with spaces\blah: Overrides the default installation directory.- Do not put quotes around the path, even when there are spaces.
- Because it allows spaces in the path, this option must be the last argument on the installer command line, if included.
It also implements additional Notepad++-specific options:
/noUpdater: Disables the N++ inherent automatic updates (it does not install the WinGUP & PluginsAdmin updating components)./closeRunningNpp: Will (try to) close existing Notepad++ before installing the new version.- It will first try a “nice” close request (using WM_CLOSE).
- If the “nice” request wasn’t successful after 5 seconds, it will kill the underlying process.
- If Notepad++ has multiple instances opened, it will close all instances.
- Note: As of now, this Notepad++ app closing enforcement functionality is limited only to the session in which the Notepad++ installer is running. So for a multi-user session environment, there still exists a possibility of an unexpected access denied fail while updating the Notepad++ app binaries (loaded & locked in another session).
/runNppAfterSilentInstall: After a silent install, it will automatically run the newly-installed Notepad++.- Only works if
/Sis also specified. /relaunchNppAfterSilentInstall: If Notepad++ was running when silent install was initiated, it will automatically run the newly-installed Notepad++ after installation is complete.- Only works if
/Sis also specified.
Note : The installer options are case sensitive: /S will do a silent installation, whereas /s will not.
MSI Installer Options
There is an MSI version of the installer as well. It is intended for IT departments to deploy Notepad++ across an organization. Microsoft documents command-line options that can be used to influence MSI installation using short-name options and long-name options.
Notepad++'s MSI installer allows certain variables that can be passed in to the msiexec execution of the MSI, such as msiexec /i Notepad++.msi NOUPDATER=1. Supported MSI variables include:
NOUPDATER=1: Prevents installation of the updater executablegup.exe.REBOOT=1: Trigger reboot after installation.NPP_LANG=xyz: Automatically choose thexyz.xmllocalization file during installation (wherexyzis any valid localization filename, without the.xmlextension). (added in v8.9.4)
(The version listed for a given option is the first version of the MSI installer to support that variable.)
