Custom action that was removed still getting executed - Advanced Installer Community
vsurajevs
Posts: 6
Joined: Thu Apr 21, 2016 3:00 pm

Custom action that was removed still getting executed

I created a new version of installer with AI 10.3 where I just removed one Custom Action which was causing some issues described here - http://www.advancedinstaller.com/forums ... 45&p=87113 (in short - 1 .bat file is missing after upgrading and upgrade fails at the custom action that executing .bat file). But I am still seeing installer failing at executing custom action that I just removed.

Additionally, I tried to set condition for that custom action '1=2', but AI still invokes that custom action.
Also searched in .aip xml and there was no mention of that custom action.

Why this is happening? And how can I tell AI to not invoke custom action that is removed from installer?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom action that was removed still getting executed

Hello,

Please note that an upgrade installation consists in two parts:
  • the uninstall of the old product version
  • the installation of the new product version
Although you removed the custom action from the upgraded package, the custom action may be executed during the uninstall of the old setup package.

To remove a broken installation, please follow the steps from the How do I remove a broken installation article.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vsurajevs
Posts: 6
Joined: Thu Apr 21, 2016 3:00 pm

Re: Custom action that was removed still getting executed

Hi Dan,

I should mention that I am not expecting this Custom Action to run at uninstall stage of old product version as execution stage conditions were:
* Install
* First time install
* Upgrade
* Replaced by a new version
* Maintenance

(No Regular uninstall)

Wondering if Replaced by a new version could cause that.

Update.
Replaced by a new version - The custom action will execute during removal of the application trigerred by the installation of a new version. This option is available only during "Install Execution Stage".
Was missing this one. Thanks, Dan.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom action that was removed still getting executed

You're welcome,

I'm glad you got this working.
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”