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: Detecting an upgrade in InstallScript MSI project
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
‎Dec 07, 2009
09:12 PM
Detecting an upgrade in InstallScript MSI project
Hello,
Is there a way in InstallScript to perform a certain action only if running an upgrade - does not matter, minor or major?
Using MAINTENANCE does not work for minor upgrades. !REMOVEALLMODE does not work because it includes a First install.
I can figure out how to do it using CA, but I prefer to use InstallScript.
Thank you,
MY
Is there a way in InstallScript to perform a certain action only if running an upgrade - does not matter, minor or major?
Using MAINTENANCE does not work for minor upgrades. !REMOVEALLMODE does not work because it includes a First install.
I can figure out how to do it using CA, but I prefer to use InstallScript.
Thank you,
MY
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2009
09:15 PM
Hi,
You can use these properties -- IS_MINOR_UPGRADE gets set for a minor upgrade and IS_MAJOR_UPGRADE gets set for a major upgrade.
Thanks,
Alpesh
You can use these properties -- IS_MINOR_UPGRADE gets set for a minor upgrade and IS_MAJOR_UPGRADE gets set for a major upgrade.
Thanks,
Alpesh
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2009
09:22 PM
Alpesh wrote:
Hi,
You can use these properties -- IS_MINOR_UPGRADE gets set for a minor upgrade and IS_MAJOR_UPGRADE gets set for a major upgrade.
Thanks,
Alpesh
Right, but those are MSI properties, and I do not want to use those - we may later on switch to purely InstallScript, and this function will have to be re-written. Any suggestion for pure InstallScript? This is to be performed in "OnEnd" function.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2009
10:28 PM
In that case, check the documentation of VerProductCompareVersions method and see if that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 08, 2009
01:59 PM
Thank you!
And how about the "First Install" condition? Can this be checked without using a function to compare versions?
And how about the "First Install" condition? Can this be checked without using a function to compare versions?