Skritek
Posts: 8
Joined: Thu Apr 14, 2011 10:59 am

Unistall fails - bad return code from Custom action

Hi, I have big problem. I have created custom action on the begin event, with return code checking. Now when the actions fails. I cant uninstall old version of the application. Its big problem. Becouse this version is already installed on some customers computers. I need the simpliest solution how to force the uninstall of old version even when custom action fails. Thanks.

I have figured out one solution: I have created new setup with no error code chcecking. Then I go to control panel and I repair instalation with new MSI. Then I can uninstall old version. But maybe someone has better solution ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Unistall fails - bad return code from Custom action

Hello,

Unfortunately if any custom action fails, a rollback is triggered automatically by Windows Installer. Since your custom action is scheduled after the Begin standard action, I'm afraid there is nothing you can do automatically. You cannot schedule any rollback custom action that will uninstall your previous application before the InstallInitialize standard action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Skritek
Posts: 8
Joined: Thu Apr 14, 2011 10:59 am

Re: Unistall fails - bad return code from Custom action

Thanks, I understand :(

Return to “Common Problems”