Unattended/Silent Install Notepad++

CuriousOne picture CuriousOne · May 10, 2018 · Viewed 10k times · Source

I've been trying to install Notepad++ version 7.5.6 on numerous remote servers completely unattended. I've researched and found the silent switch '/S' but it doesn't work as I intended in my local environment. When I run the following code, it still generates a popup for the language, just as if I had clicked on the installer manually.

start-process -FilePath "$Path\npp.7.5.6.Installer.x64.exe" -ArgumentList '/S' -wait

As far as I can tell, this shouldn't produce any popups, but it does, starting with the User Account Control.

Can anyone figure out what I'm doing wrong and how to get the installer to run completely unattended without any popups?

Answer

Frédéric Bonneau picture Frédéric Bonneau · May 10, 2018

As @TheIncorrigible1 said you need to use -Verb runas

start-process -FilePath "$Path\npp.7.5.6.Installer.x64.exe" -ArgumentList '/S' -Verb runas -Wait