command-linewindows-installerinstallationnsissilent-installer

How to Install an NSIS Executable Silently For All Users


I have an NSIS installer executable which I would like to install silently for all users. I know I can pass the /S argument to do a silent install. The problem is that the default option for the installer is to install only for the current user. How can I change this option from the command line:

installer.exe /S

enter image description here


Solution

  • It turns out that for this particular installer you can pass:

    /ALLUSERS=1
    

    ALLUSERS is a standard MSI property. I did not find any documentation for this property in NSIS, so it looks like the developers of this particular installer added this.