Prev Previous Post   Next Post Next
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
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump