We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Pirs1941
Posts: 1
Joined: Mon Mar 24, 2025 9:14 am
Contact: Website

Issue with Custom Actions Not Running During Silent Installation

I'm new to Advanced Installer and currently working on an MSI package for a desktop application. I’ve added a custom action to execute a PowerShell script during the installation process, which performs some registry modifications and copies a few configuration files.

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?
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Issue with Custom Actions Not Running During Silent Installation

Hello and welcome to our forums,

To further investigate this, can you please send us the .AIP (setup project) file and an installation log by email to support at advancedinstaller dot com?

Looking forward to hearing from you!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”