Unattended install not actually executing from a PowerShell script
-
I have a series of virtual machines that deploy from the same template in vCloud. Using the guest customization script part of the building phase, this calls a PowerShell script from the native VM’s “SYSTEM” account, and unfortunately his seems to be unable to run an unattended install of Notepad++.
The script line I’m using is fairly straight forward:
$proc = Start-Process "C:\Install\npp_setup.exe" -verb RunAs -Wait -Passthru -ArgumentList "/S ALLUSERS=TRUE"
When this is called by the VM build process, this just sits and does nothing. In Task Manager, no Notepad++ setup process is running.
If I use PSExec to create a PowerShell instance with the SYSTEM account, I can execute the same script, and this works - no pop-ups, no UAC.
This seems to be quite a common theme with Notepad++ failing to be installed when running from an unattended session.
Does anyone have a solution to this? -
@Steven-Young_ivanti said in Unattended install not actually executing from a PowerShell script:
The script line I’m using is fairly straight forward:
But opens questions, for me.
C:\Install\npp_setup.exe
What is this
npp_setup.exe
? Where did you get it? Is it a renamed copy of the official installer, or some repackaged installer?/S ALLUSERS=TRUE
/S
is a valid installer option on the official installer, to enable silent installation; but from anything I’ve ever heard, and searching the repo forALLUSERS
, the optionALLUSERS=TRUE
is not understood by the official installer, AFAICT.It’s going to be hard for anyone here to help you if you’re starting from some random unknown installer or trying to use options that don’t exist. You might need to give a bit more information.
The developer doesn’t support unofficial installers, and unless one of the regulars has happened to have heard of / used it, it’s not likely any regulars will be able to help you in the forum, either.