This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Force User Interface during Remove
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2010
11:44 AM
Force User Interface during Remove
I have a Basic MSI project and during the uninstall sequence I require an Oracle password to uninstall a database. So I must prompt the user for this password. However, if the user chooses to go to Add/Remove Programs and selects Remove, it will just run the execute sequence of the uninstall, bypassing all the dialogs.
Is there a way to have the Remove button instead call the user interface sequence first? Otherwise how would I call a dialog during the execute sequence? I would prefer just to force the user interface sequence.
Is there a way to have the Remove button instead call the user interface sequence first? Otherwise how would I call a dialog during the execute sequence? I would prefer just to force the user interface sequence.
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2010
02:15 PM
There's no straightforward way to have the Remove button run the UI sequence; I gather common practice is just to disable the Remove button and leave only the Change button in Add or Remove Programs.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2010
03:38 PM
Okay, that is unfortunate. So there is no way to somehow launch a dialog from the Execute sequence then?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2010
04:22 PM
Well, you'd really be fighting Windows Installer to do it. The Remove button for a Basic MSI installer skips the UI sequence; you could create a custom action in the Execute sequence that shows some sort of non-MSI dialog box, but run the risk of annoying those wanting a silent uninstall (see ICE13).
A roundabout technique is to hide the MSI information from Add or Remove Programs and write a non-MSI wrapper that appears there, and have your code launched when the user clicks Change/Remove (that's what InstallScript MSI projects do, for example), but that might be more trouble than it's worth.
A roundabout technique is to hide the MSI information from Add or Remove Programs and write a non-MSI wrapper that appears there, and have your code launched when the user clicks Change/Remove (that's what InstallScript MSI projects do, for example), but that might be more trouble than it's worth.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2010
04:45 PM
Okay, yes it would be nice to have a silent install available. I suppose I'll just disable the Remove button from Add/Remove Programs and hopefully no one complains. Thanks for the help!