Hi,
I have a signed PowerShell script which I want to deploy to a target machine via a WiX installer. Is it possible to give the script the execution rights?
Regards, forki
- EDIT - It seems I have to call Powershell with --Command Set-ExecutionPolicy RemoteSigned, but I can't get it working. I see the Powershell command window opening but it doesn't change the policy.
<Property Id="POWERSHELLEXE"><![CDATA[C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe]]></Property> <CustomAction Id="AllowPS" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -Command Set-ExecutionPolicy RemoteSigned" Execute="deferred" Return="check"/> <InstallExecuteSequence> .. <Custom Action="AllowPS" Before="InstallFinalize"/> ... </InstallExecuteSequence>