View Full Version : Illegal Custom Action Prevents Uninstall

07-29-2004, 05:26 PM
I've created an installation with a custom action that runs at uninstall time. Unfortunately the custom action produces an error so I can't uninstall from add/remove programs now.

I've tried editing the source MSI file to remove the action but it appears that the system doesn't use the source file but something internally.

What's the best way to uninstall my program?



Mike Marino
07-29-2004, 07:06 PM
Two ways to do this.

1. Use MSIZap (Available from Microsoft). See http://support.installshield.com/kb/view.asp?articleid=Q110474

2. Locate the cached package and remove the offending action. Cached packages are stored at:


Unfortunately the names MSI gives them are encoded. So I suggest you sort by Modified date, open the MSI in Orca.exe and remove the offending action.

Hope this helps

07-30-2004, 06:17 AM
You could probably also take a package with the uninstall error fixed and tell MSI to re-cache the newer version's database; a command similar to this should do it:

msiexec /i product.msi REINSTALLMODE=voums REINSTALL=ALL

After that, you should be able to uninstall.

07-30-2004, 07:29 AM
Thanks that worked.

I had an action with no executable and with a
del filename /q in the command line

Where is the executable for deleting files?



08-02-2004, 08:41 AM
I found that [SystemFolder]cmd.exe could be used with the /c parameter to run all DOS commands.