Hello and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
Our
"Run Windows PowerShell Script" predefined custom action uses by default the
Bypass Windows PowerShell execution policy. Unfortunately, we don't have support to change the Windows PowerShell execution policy for a script launched using the "Run Windows PowerShell Script" predefined custom action.
The execution time and execution options settings are not specific only to PowerShell custom actions. They are generic settings used by all Windows Installer
custom actions. Please take a look on our
"Custom Action Properties" article. For example,if you need to access an
installer property within your custom action, then you should configure the custom action to run as immediate. If you need to run your custom action after the installation resources (e.g. files, registries, etc) have been deployed on target machine, then you should configure it to run as deferred (scheduled after the "Install Execution Stage -> Add Resources" actions group).
If you have any questions let us know.
All the best,
Daniel