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: Weird Uninstall Behavior
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
‎Sep 02, 2008
11:31 AM
Weird Uninstall Behavior
Hello, community 🙂
I'm having a problem with my pure InstallScript project. When I install it and then uninstall it, it's okay. However, if I add OnMaintUIBefore and OnMaintUIAfter functions to it, when I try to uninstall from Add/Remove Programs, the computer says it's configuring the new software installation and never removes the program. The OnMaintUIBefore and OnMaintUIAfter have nothing in them except for MessageBox calls. This seems really strange to me that it won't let me uninstall at all. :confused:
Can anyone please help? I couldn't figure out why it's doing this despite looking at the docs. I need the Maint functions to do some cleanup and setup when the maintenance actually is supposed to be taking place.
Thank you in advance 🙂
I'm having a problem with my pure InstallScript project. When I install it and then uninstall it, it's okay. However, if I add OnMaintUIBefore and OnMaintUIAfter functions to it, when I try to uninstall from Add/Remove Programs, the computer says it's configuring the new software installation and never removes the program. The OnMaintUIBefore and OnMaintUIAfter have nothing in them except for MessageBox calls. This seems really strange to me that it won't let me uninstall at all. :confused:
Can anyone please help? I couldn't figure out why it's doing this despite looking at the docs. I need the Maint functions to do some cleanup and setup when the maintenance actually is supposed to be taking place.
Thank you in advance 🙂
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 03, 2008
12:18 PM
The default OnMaintUIBefore event contains code to display the maintenance type dialog and to kick off the maintenance operation selected by calling one of the Feature functions (FeatureRemoveAllInMediaAndLog, FeatureReinstall, etc.). Does your OnMaintUIBefore event still contain this code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 03, 2008
12:27 PM
joshstechnij wrote:
Does your OnMaintUIBefore event still contain this code?
Hmm, it doesn't. I've had this project passed off on to me from someone else, so I don't know what was there before.
If I create a new install script project should that give me the code I need?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2008
09:37 AM
Yes, you can get the default OnMaintUIBefore code (or any other event) by creating a new InstallScript project and adding the event through the InstallScript view. You can copy/paste this code into your project's script and then modify it as needed.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)