MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: REINSTALLMODE[Next]: SourceDir
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Windows Installer Basics->Properties->Specific Properties->REMOVE

REMOVE

The "REMOVE" property is a standard windows installer one. This documentation will tell you that it must be sequenced after the "InstallValidate" action.

Consider this code:

<$JsCa Binary="Popup.js">
    <$JsCaEntry "EarlyInUninstall">
        CaMsgBox( "I",'Want this popup to appear very early in uninstall.');
    <$/JsCaEntry>
<$/JsCa>
<$JsCaSetup Binary="Popup.js" Entry="EarlyInUninstall" Seq="LaunchConditions-" CONDITION=^<$CONDITION_UNINSTALL_ONLY>^ Type="immediate">

If you try the above code you will find that during uninstall it may or may not appear depending on how the uninstall was invoked!

The dialog will be displayed unless the maintenance mode dialog is displayed. The reason is until the maintenance mode dialog has been processed the action to be performed is unknown (the user may not wish to uninstall). That is the "REMOVE" property does not contain "ALL" so the custom actions condition is false.

In actual fact, that it works as all is a side effect that should not be relied apon, the documentation states that this property should not be used until after the "InstallValidate" action has executed.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 15 Nov 2008Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: REINSTALLMODE[Next]: SourceDir


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday November 15 2008 at 2:05pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 7 Nov 2008

HTML page dated Mon, 29 Jan 2007 00:11:11 GMT
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 15 Nov 2008