UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Custom actions in Commit section runing on uninstall

There is a version of my installer on some of our systems that keeps trying to run at least one of the 'Commit' time custom actions on uninstall. This causes the uninstall to fail as it tries to reference a file that has been removed. Now I can't uninstall this version. Is there any way to run the removal process and suppress the custom action ?
UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

After reviewing the log file, I can see it switch to REMOVE mode, and it removes all the files, but it's still trying to execute the install time custom actions.
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Yes, but you'd need to edit the installed MSI somehow. You have two options:

1, Go into Windows\Installer (hidden folder), sort the folder by date/time and edit the MSIs in Orca until you find the faulty MSI. Then you should go to the InstallExecuteSequence table and change the condition on the erroneous custom action to FALSE to prevent it running.

2, build a fixed version of your MSI, incrementing the product version but not changing the product code. Then install this version over the existing version with "msiexec /i newmsi.msi REINSTALL=ALL REINSTALLMODE=vomus". If you've done this correctly it should uninstall happily.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

If you need to remove a broken installation you can use the Windows Installer CleanUp utility:
http://support.microsoft.com/?scid=kb%3 ... 1&x=8&y=12

Note that if you want a custom action to run only during the install process, you need to set the "Expression" filed in the "Custom Action Properties" page to "NOT Installed".
http://www.advancedinstaller.com/user-g ... rties.html
http://www.advancedinstaller.com/user-g ... ialog.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”