I'm quite new to NSIS. Is it possible to start a Powershell-script from an NSIS-Script, pass a String to the Powershell-script and then read back a String that the Powershell-script returns?
In short: NSIS ---[String]---> Powershell ---[String]---> NSIS
If yes, an example would be great.
Thanks a lot, drw
Interaction with Powershell Script
3 posts
Something like this:
SectionYou might want to use a full path to powershell so you know you are getting the correct version etc...
nsExec::ExecToStack '"powershell.exe" -noprofile -command "echo Hello"'
Pop $0
Pop $1
DetailPrint $0=$1
SectionEnd
Thanks that helped me solve it.