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
- :
- Method after OnMaintUIBefore but before OnUninstallingFile
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
Oct 18, 2012
03:47 PM
Method after OnMaintUIBefore but before OnUninstallingFile
Afternoon,
I'm trying to figure out a way to capture the Mainteance mode after the OnMaintUIBefore() event but before the uninstallation gets to OnUninstallingFile().
Anyway I created a custom sdWelcomeMaint dialog that only has the Repair and Remove radio options (and some skinning). I personally do not want to have to call FeatureRemoveAll() because I'd rather have the system handle that and be able to exit early if certian conditions haven't been met. I'm at a loss because I cannot clearly find a way using the help nor the previous forum posts.
I'm hesitant to use OnUninstallingFile() with some hardcoded feature or file because if I need to I have to prevent uninstallation and I'd rather exit then have to hope abort() will put the possibly editted file back. Also if any features change or the actual order in which they are uninstall or installed changes or Features are uninstalled in any particular order. If I change something in the project I really won't remember to change the script after a few releases.
I need some event or way to access the Maintenance choice right after that dialog but before the actual unistallation happens? Or can I dynamically find the FIRST feature/file to use in OnUninstallingFile()?
Please, please help a fellow installer!
Note: OnMaintUIAfter() fires after the uninstallation or repair.
I'm trying to figure out a way to capture the Mainteance mode after the OnMaintUIBefore() event but before the uninstallation gets to OnUninstallingFile().
Anyway I created a custom sdWelcomeMaint dialog that only has the Repair and Remove radio options (and some skinning). I personally do not want to have to call FeatureRemoveAll() because I'd rather have the system handle that and be able to exit early if certian conditions haven't been met. I'm at a loss because I cannot clearly find a way using the help nor the previous forum posts.
I'm hesitant to use OnUninstallingFile() with some hardcoded feature or file because if I need to I have to prevent uninstallation and I'd rather exit then have to hope abort() will put the possibly editted file back. Also if any features change or the actual order in which they are uninstall or installed changes or Features are uninstalled in any particular order. If I change something in the project I really won't remember to change the script after a few releases.
I need some event or way to access the Maintenance choice right after that dialog but before the actual unistallation happens? Or can I dynamically find the FIRST feature/file to use in OnUninstallingFile()?
Please, please help a fellow installer!
Note: OnMaintUIAfter() fires after the uninstallation or repair.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 19, 2012
12:50 PM
So I stumbled upon OnShowUI(). I feel like a god now.
Overriding OnShowUI() will give me full control over the installation. Now I do not have to rely on IS to throw these events in order to deal with them.
Now I only need to figure out how to determine if this execution is a first-time installation, Add/Remove call to repair or uninstallation or a cmdline Uninstallation...
This helps me suppress unwanted dialog and simulate a silent install/uninstall for when embedding this installer within another and still be able to pop-up error messages (as "/s" will suppress ALL dialogs even error messages).
I will update soon for prosperity...
Overriding OnShowUI() will give me full control over the installation. Now I do not have to rely on IS to throw these events in order to deal with them.
Now I only need to figure out how to determine if this execution is a first-time installation, Add/Remove call to repair or uninstallation or a cmdline Uninstallation...
This helps me suppress unwanted dialog and simulate a silent install/uninstall for when embedding this installer within another and still be able to pop-up error messages (as "/s" will suppress ALL dialogs even error messages).
I will update soon for prosperity...