PDA

View Full Version : Add/Remove Applet's Remove Button



SQLPro802
10-29-2002, 10:48 AM
Hello again!


I have noticed that when the user clicks Remove from the Add/Remove Applet, it bypasses the UI Maintenance dialogs, while this does not really matter to me, what I do care about is that when I click Remove my CustomAction does not fire, which I assume is because it is in the UI sequence, so if i place the CA in the execute sequence will it still get fired when the user clicks the remove button?

thanks,
derek

ps i am testing this too, but I would stil appreciate some good info on the Remove vs Change button functionality!

ps2 is there a way I can set the Remove button to run the full maintenance/ui sequence?

RobertDickau
10-29-2002, 10:55 AM
That's correct: the user's clicking Remove runs the command msiexec /x [ProductCode], which skips the UI sequence; I'm not aware of a way to change that.

You can place a custom action in both the UI and Execute sequences, if you need it always to run...

SQLPro802
10-29-2002, 10:58 AM
thanks robert, a fellow InstallShield Developer here in my office, said he thought in I.S. Professional there was a way to accomplish changing the remove buttons functionality? Just curious though, why would script/procedural setups have that capability, and msi/database setups would not?

thanks robert,
derek

SQLPro802
10-29-2002, 11:01 AM
I just placed the CA in the execute sequence using Installed condition, and it is executing regardless of which commandline parameter is used with msiexec.

RobertDickau
10-29-2002, 11:10 AM
Derek,

For pure MSI setups, the OS handles the behavior of the Change and Remove buttons; for non-MSI setups (including Developer 7 InstallScript-based projects), there's only that single Change/Remove button, which launches the command listed in your product's Uninstall registry key...

--- Robt.

SQLPro802
10-29-2002, 11:21 AM
hey thanks for the good info! So just by looking at the Add/Remove applet I can see which program's setups were msi-based or script-based. Thats pretty cool!

Best Regards,
Derek