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!