View Full Version : Stop a custom action running on uninstall error 1721?

03-10-2008, 12:39 AM
I have a project that has custom action that installs the flash activex licensed install from adobe which is an exe file as a custom action by extracting the file to TEMP and then running silently with a command line (the merge module does not meet our purposes).

My problem is that when uninstalling I get error 1721 there is a problem with this windows installer package.

How can I stop this custom action from running at uninstall? I do not want to rollback this function.

Can anyone help steer me on the right track. Thanks.

03-10-2008, 05:25 PM
You need to add a condition to your custom action

NOT REMOVE="ALL" - prevents the ca from running on uninstall.

You could also use a component as a condition.

$Component>2 - only runs the ca when Component is being installed.

Hope that helps.