View Full Version : Uninstall msi

10-13-2011, 01:32 AM
When uninstalling a msi from Control Panel the system is running a silent uninstall. Instead it should run the msi with the -i option. I was wandering if there is any setting that may enable such behaviour.

10-13-2011, 04:02 PM
Sorry, you can't change the behavior of the Uninstall/Remove button. The common approach to this involves setting ARPNOREMOVE and requiring uninstallations to go through the Change/Modify UI.

10-17-2011, 04:10 AM
I solved the problem by detecting if we have a sillent install, and in that case aborting install and launching manually the normal install
Add property set it to true
add function in ui sequence after iextract set property to false
add function in exec sequence after launch conditions
if property is set to true launch a non-sillent uninstall and then exit

10-19-2011, 08:10 AM
apparently for some reason on xp calling abort (or exit) from a custom action causes an annoying messagebox to appear with the message "Fatal error". The mechanism still works ok, but this message should be suppressed. Is there a way to do this?

10-19-2011, 11:43 AM
Assuming this is a basic MSI, why not just return the right code to say "the install is over" (skip remaining actions)? The return values are covered on MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/aa368072(v=vs.85).aspx).

10-20-2011, 01:27 AM
I already tried returning ERROR_SUCCESS, but it continues with the installation in this case when I want is for the installation to stop.

Just tried with ERROR_INSTALL_USEREXIT . Seems to work. Thanks a lot!