cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ZygoCorp
Level 6

remove vs change

INSTALLSCRIPT PROJECT:
I know how to check if the installer was called from the add/remove dialog. Is there a way to know if the user pressed 'remove/uninstall' or 'change'? I'd like to seed the maintenance screen based on the button they pressed. Right now we always initialize to Repair.

Thank you
Labels (1)
0 Kudos
(3) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The REMOVEONLY variable will be set if the remove button was clicked in Add/Remove Programs (assuming the uninstall string for the ARP entry was not modified). Note that this variable can also be set by someone launching the original setup.exe with -removeonly on the command line. The ADDREMOVE and REMOVEONLY variables could both be used in a condition to compensate for this.
0 Kudos
ZygoCorp
Level 6

Thank you - I will try that as soon as I can find a moment.
0 Kudos
ZygoCorp
Level 6

yeah - thanks! that worked and was exactly what I was looking to do. I appreciate the help.
0 Kudos