View Single Post
Old 22nd June 2021, 16:59   #1
Junior Member
Join Date: Oct 2020
Posts: 44
run powershell script from nsis

I am running into an issue when I try to execute a powershell script through nsis. I get the error code 196608. when I google on this, they say it is because I have set execution policy as bypass and not RemoteSigned. the solution google recommends is to set execution policy as RemoteSigned. when I set this in nsis, it still throws an error. I have tried this.
#ExecWait "powershell.exe -ExecutionPolicy RemoteSigned -WindowStyle Hidden -File '$TEMP\PS.ps1'" $0
#ExecWait 'powershell.exe "& "$TEMP\PS.ps1"' $0
#ExecWait "powershell -inputformat none -ExecutionPolicy RemoteSigned -File '$TEMP\PS.ps1'" $0

I cannot set RemoteSigned as it is a req. any help like always is appriciated
shekara is offline   Reply With Quote