The script runs perfectly when I execute the installer with the UI, but when I try a silent installation using the /qn parameter, the custom action does not seem to execute. I’ve checked the logs and there’s no indication that the script even starts.
Here’s what I’ve tried so far:
- Placed the custom action in "Install Execution Stage -> Commit" (also tested in "Deferred" with no difference).
- Set the Execution Condition to "NOT Installed" to ensure it runs only during fresh installations.
- Enabled "Run under the Local System Account" and also tried "Deferred with no impersonation".
- Checked MSI logs (msiexec /i mysetup.msi /qn /L*V log.txt), but no errors related to the script appear.
Does Advanced Installer have any restrictions on running PowerShell scripts in silent mode?
FOLLOW US
Get the latest news in Application Packaging