Hey!
I'm creating an installer and as we finish copying files, prompt install for some prerequisites, we want to execute a couple of powershell scripts (.ps1 extension)
One is a single string replacement script, which works fine with ExecWait.
ExecWait 'powershell.exe -file "$INSTDIR\replace.ps1" "$ConnStr" "$INSTDIR"'
So that works very nicely.
ExecShell "" "$INSTDIR\replace.ps1" '/param1="$ConnStr" /param2="$INSTDIR"' SW_SHOWNORMAL
I tried this a multitude of ways and parameters never get passed, this is just the latest.
The first one I have tried:
ExecShell "" "$INSTDIR\replace.ps1" '"$ConnStr" "$INSTDIR"' SW_SHOWNORMAL
I have tried with "open", does the same as the empty one, with "runas" it doesn't even execute.
How am I supposed to pass multiple parameters with ExecShell?
Bonus question: Does it run 32bit or 64bit powershell? Does it run the "default"? whatever that is
I've googled for a couple hours now and checked docs of course but it didn't help out enough
I'm creating an installer and as we finish copying files, prompt install for some prerequisites, we want to execute a couple of powershell scripts (.ps1 extension)
One is a single string replacement script, which works fine with ExecWait.
ExecWait 'powershell.exe -file "$INSTDIR\replace.ps1" "$ConnStr" "$INSTDIR"'
So that works very nicely.
ExecShell "" "$INSTDIR\replace.ps1" '/param1="$ConnStr" /param2="$INSTDIR"' SW_SHOWNORMAL
I tried this a multitude of ways and parameters never get passed, this is just the latest.
The first one I have tried:
ExecShell "" "$INSTDIR\replace.ps1" '"$ConnStr" "$INSTDIR"' SW_SHOWNORMAL
I have tried with "open", does the same as the empty one, with "runas" it doesn't even execute.
How am I supposed to pass multiple parameters with ExecShell?
Bonus question: Does it run 32bit or 64bit powershell? Does it run the "default"? whatever that is
I've googled for a couple hours now and checked docs of course but it didn't help out enough
Comment