Installer - Run PowerShell hidden and with -NoProfile
when installing silently
#2515
Labels
Milestone
-NoProfile
when installing silently
#2515
Context
Following command:
Downloads and installs https://github.com/WinMerge/winmerge/releases/download/v2.16.44/WinMerge-2.16.44-x64-PerUser-Setup.exe with
/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
.In the middle of the installation a visible PowerShell window pops up, and it is loading the PowerShell profile before installing.
Feature requests
PowerShell.exe -WindowStyle hidden
PowerShell.exe -NoProfile
.Example command I've successfully used from Intune when running PowerShell scripts in user context in the past:
Workaround
Use Scoop:
scoop install extras/winmerge
.The text was updated successfully, but these errors were encountered: