AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Error running installer after removing custom action

Similar problem as reported here viewtopic.php?t=39889 .

I have removed a custom action "LaunchFile" from my project but when running the installer I get the following:
2023-03-29_16-28-21.png
2023-03-29_16-28-21.png (209.85 KiB) Viewed 5570 times
As you can see there is no "LaunchFile" custom action listed in the Existing Custom Actions box however the installation fails apparently because it returns an error.

I have closed and re-opened the project a couple of times but the issue remains.

I'm using AI v20.3.2 .
AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Re: Error running installer after removing custom action

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
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Error running installer after removing custom action

Hello,

Is this happening during an upgrade installation?

If so, this might indeed be the case described by my colleague Dan.

To check this, please open the project which built the previous version and verify that the custom action is scheduled to run on Uninstall too.

If that's the case, the solution to this would be:

- uncheck the "Uninstall" option for your custom action

- rebuild the project

- on the machine where this is replicated, recache the MSI by using the /fv option, e.g.:

Code: Select all

msiexec /fv <path_to_new_msi>
Then proceed to run the upgrade again.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Re: Error running installer after removing custom action

Thanks for this updated information. Fortunately I discovered this event while testing so I fixed the issue using the Microsoft Fixit option.
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Error running installer after removing custom action

Hello,

Thank you for your follow-up on this.

Let us know if you have any other questions.

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

Return to “Common Problems”