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
- :
- Re: Check in OnMaintUIBefore if the setup is running from Control Panel --> Uninstall
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
‎Nov 08, 2011
11:00 AM
Check in OnMaintUIBefore if the setup is running from Control Panel --> Uninstall
Hi all,
how can i check in OnMaintUIBefore if the setup is running from
Control Panel --> Uninstall?
Thanks in advance
Ulrich
how can i check in OnMaintUIBefore if the setup is running from
Control Panel --> Uninstall?
Thanks in advance
Ulrich
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2011
11:05 AM
Go to Behavior & Logic > InstallScript, from the dropdowns at the top, select 'Before Move Data' in the first and select 'OnMaintUIBefore' on the second one. It will now either add the built-in code to your script, or if you have already added the code to override the built-in code, it will jump there. Just before Dlg_Start, you can add
When you build and run the installer, install the program, and then go to Add/Remove program to repair / modify / remove, it will now show you the message dialog you just added.
MessageBox("Inside OnMaintUIBefore", 0);
When you build and run the installer, install the program, and then go to Add/Remove program to repair / modify / remove, it will now show you the message dialog you just added.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2011
11:12 AM
Thanks for your quick answer!
This is clear.
I need a different logic in OnMaintUIBefore if the user starts the setup from control panel --> uninstall or just starts setup.exe again.
This is clear.
I need a different logic in OnMaintUIBefore if the user starts the setup from control panel --> uninstall or just starts setup.exe again.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2011
03:07 PM
You should be able to use the ADDREMOVE variable to condition on running from Add/Remove Programs or not from OnMaintUIBefore.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)