无人值守/静默安装 Notepad++

Cur*_*One 4 powershell installation notepad++ silent-installer

我一直在尝试在完全无人值守的情况下在众多远程服务器上安装 Notepad++ 7.5.6 版。我研究并找到了静音开关'/S',但它在本地环境中无法按我的预期工作。当我运行以下代码时,它仍然会生成该语言的弹出窗口,就像我手动单击安装程序一样。

start-process -FilePath "$Path\npp.7.5.6.Installer.x64.exe" -ArgumentList '/S' -wait
Run Code Online (Sandbox Code Playgroud)

据我所知,这不应该产生任何弹出窗口,但它确实会产生,从用户帐户控制开始。

谁能弄清楚我做错了什么以及如何让安装程序完全无人值守地运行而没有任何弹出窗口?

Fré*_*eau 5

正如@TheIncorrigible1所说,你需要使用 -Verb runas

start-process -FilePath "$Path\npp.7.5.6.Installer.x64.exe" -ArgumentList '/S' -Verb runas -Wait
Run Code Online (Sandbox Code Playgroud)