Dear Advanced Installer Support Team,
We have a rather urgent issue coming from one of our customers: recently they changed the execution policy of their powershell scripts to prevent unsigned scripts from being executed, since then our installer´s are not working any longer on their side due to errors like this:
(SERVER) MSI (s) (B0:34) [11:47:07:404]: Doing action: Searches_Fix_Reg_Values
(UNKNOWN) Action 11:47:07: Searches_Fix_Reg_Values.
(UNKNOWN) Action start 11:47:07: Searches_Fix_Reg_Values.
(SERVER) MSI (s) (B0:90) [11:47:07:420]: Invoking remote custom action. DLL: C:\Windows\Installer\MSID943.tmp, Entrypoint: RunPowerShellScript
(UNKNOWN) Dumping PowerShell invoke log ...
(UNKNOWN) --> Found PowerShell path: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
(UNKNOWN) --> PowerShell Script Execution Result Code: 1
(UNKNOWN) --> PowerShell Script Execution log:
(UNKNOWN) File C:\Users\<username>\AppData\Local\Temp\pssD947.ps1 cannot be loaded. The file
(UNKNOWN) C:\Users\<username>\AppData\Local\Temp\pssD947.ps1 is not digitally signed. You cannot run this script on the
(UNKNOWN) current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
(UNKNOWN) at http://go.microsoft.com/fwlink/?LinkID=135170.
(UNKNOWN) + CategoryInfo : SecurityError: (:) , ParentContainsErrorRecordException
(UNKNOWN) + FullyQualifiedErrorId : UnauthorizedAccess
(SERVER) MSI (s) (B0!40) [11:47:08:390]: PROPERTY CHANGE: Adding POWERSHELL_EXECUTION_LOG property. Its value is 'File C:\Users\<username>\AppData\Local\Temp\pssD947.ps1 cannot be loaded. The file
(UNKNOWN) C:\Users\<username>\AppData\Local\Temp\pssD947.ps1 is not digitally signed. You cannot run this script on the
(UNKNOWN) current system. For more information about running scripts and setting execution policy, see about_Execution_Policies
(UNKNOWN) at http://go.microsoft.com/fwlink/?LinkID=135170.
(UNKNOWN) + CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
(UNKNOWN) + FullyQualifiedErrorId : UnauthorizedAccess'.
(UNKNOWN) CustomAction Searches_Fix_Reg_Values returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
We have quite a few inline powershell script custom actions in our .aip project, e.g. Searches_Fix_Reg_Values is one out of them. Please help us in fixing our custom actions.
Best regards,
Zsolt