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 FAQ (the 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, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please 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 December 09 2017 at 9:30am
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.