PDA

View Full Version : How do I know if an uninstall is running



buntonn
10-11-2003, 06:35 PM
I have a block of code in my script file which I only want to run when installing, is there a keyword or something to identify that an INSTALL or UNINSTALL is running?

Thanks

mitesh
10-12-2003, 09:13 PM
check for MAINTENANCE property. if it's true then ur setup is either going to uninstall the product or reinstall the product. if it's false then it's first time installation.

thanks

buntonn
10-13-2003, 06:48 AM
Thanks for your help, I will try this later.

I have also just seen this in the help file under MessageBoxEx (Not sure why this isn't listed in the main index).

if (REMOVEALLMODE != 0) then
// Any code here will only execute during uninstallation
endif;