annasm
Posts: 1
Joined: Mon Oct 13, 2025 8:33 am

Custom Action Script Doesn’t Run After MSI Upgrade

Hello everyone,

I’m having an issue with a custom action in my MSI project. The script (a simple PowerShell file) runs perfectly during a fresh install, but when I build an upgrade version of the installer and run it over an existing installation, the script doesn’t execute at all.

I have already verified that the custom action is set to “Deferred with no impersonation” and is scheduled to run after “Install Files.” The upgrade removes the old version and installs the new one as expected - only the script part fails silently (no log entries related to it).

Has anyone experienced this kind of behavior? Is there a specific setting or condition that prevents custom actions from running during upgrades?

Thanks!
Anna Smith Geometry Dash
Catalin
Posts: 7525
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Action Script Doesn’t Run After MSI Upgrade

Hello and welcome to our forums,

Which case is it actually - it doesn't execute or fail silently?
only the script part fails silently (no log entries related to it)
If the script fails silently, it is impossible for that not to be logged. If the script fails, then the installation should also fail, so this doesn't make much sense, unless you specifically told the setup to continue with the execution even if the custom action fails.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”