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
- :
- Detect uninstallation of prev version happening during Major upgrade
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
Feb 12, 2014
02:50 AM
Detect uninstallation of prev version happening during Major upgrade
I have a Basic MSI project which does a major upgrade of previous builds.
It uninstalls the previous version and then installs new version.
I have added a customized warning message when user clicks on Remove in Add/Remove Programs so that user can still cancel uninstallation
if he has clicked by mistake.
But during upgrade also the same message is coming which I want to hide during upgrade.
since this message is in Uninstall logic.
if user selects on cancel then it will be a problem as upgrade will not happen.
Is there any way to detect if this uninstallation is happening as part of major upgrade or then I dont want to show this message.?
or is there any way to suppress Messages during silent installation of a basic MSI setup?
It uninstalls the previous version and then installs new version.
I have added a customized warning message when user clicks on Remove in Add/Remove Programs so that user can still cancel uninstallation
if he has clicked by mistake.
But during upgrade also the same message is coming which I want to hide during upgrade.
since this message is in Uninstall logic.
if user selects on cancel then it will be a problem as upgrade will not happen.
Is there any way to detect if this uninstallation is happening as part of major upgrade or then I dont want to show this message.?
or is there any way to suppress Messages during silent installation of a basic MSI setup?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 14, 2014
05:51 PM
I just did this for another reason this past week.
Suppose your error message is presented to the user via a Custom Action.
That custom action should have a condition on it that is: REMOVE="ALL" AND Not UPGRADINGPRODUCTCODE
REMOVE="ALL" is true when you are removing the product for any reason
UPGRADINGPRODUCTCODE is true when the product is being removed from an upgrade process.
So...
Only execute when you are removing the entire product and not when doing so during an upgrade.
I think this is what you need.
Let me know how it works out.
Suppose your error message is presented to the user via a Custom Action.
That custom action should have a condition on it that is: REMOVE="ALL" AND Not UPGRADINGPRODUCTCODE
REMOVE="ALL" is true when you are removing the product for any reason
UPGRADINGPRODUCTCODE is true when the product is being removed from an upgrade process.
So...
Only execute when you are removing the entire product and not when doing so during an upgrade.
I think this is what you need.
Let me know how it works out.