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
- :
- CA condition for a minor 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
‎Nov 17, 2010
11:43 AM
CA condition for a minor upgrade
Hello everyone,
I have an Install script CA that I want to run only under a select set of conditions.
And I'm having a devil of a time figuring our how to "code" the conditions correctly.
I'm wondering if I might ask for help from those more experienced in these issues.
I only want my CA to run if performing a minor upgrade.
NOT during a first time install.
NOT during an uninstall.
And NOT during a repair or change.
Here's an example of the command line that I use to execute the minor upgrade.
msiexec /i "C:\TestAPP.msi" REINSTALL=ALL REINSTALLMODE=vomus /l*v "C:\Upgrade.log"
Is there a way for me to condition my CA to work only during a minor upgrade ?
Thanks in advance for the advice.
I have an Install script CA that I want to run only under a select set of conditions.
And I'm having a devil of a time figuring our how to "code" the conditions correctly.
I'm wondering if I might ask for help from those more experienced in these issues.
I only want my CA to run if performing a minor upgrade.
NOT during a first time install.
NOT during an uninstall.
And NOT during a repair or change.
Here's an example of the command line that I use to execute the minor upgrade.
msiexec /i "C:\TestAPP.msi" REINSTALL=ALL REINSTALLMODE=vomus /l*v "C:\Upgrade.log"
Is there a way for me to condition my CA to work only during a minor upgrade ?
Thanks in advance for the advice.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 18, 2010
09:41 AM
Hi Ray,
By definition, a Minor Upgrade is defined by the value of the REINSTALLMODE property. Specifically, the 'v' parameter that re-caches the MSI on the system. So in theory, something like:
REINSTALLMODE><"v"
Would singularly define this. But this wouldn't work in a Minor Upgrade Patch, since that relies on PATCH being set instead of re-caching an MSI package via "v". So, something like this should work a bit better:
((REINSTALLMODE><"v" OR PATCH) AND NOT REMOVE~="ALL") AND Installed
Or, if you are expecting users to only run a Minor Upgrade via the InstallShield Setup.exe file, you can just as easily rely on:
IS_MINOR_UPGRADE
(Which we set on the commandline during a Minor Upgrade with our Bootstrapper)
By definition, a Minor Upgrade is defined by the value of the REINSTALLMODE property. Specifically, the 'v' parameter that re-caches the MSI on the system. So in theory, something like:
REINSTALLMODE><"v"
Would singularly define this. But this wouldn't work in a Minor Upgrade Patch, since that relies on PATCH being set instead of re-caching an MSI package via "v". So, something like this should work a bit better:
((REINSTALLMODE><"v" OR PATCH) AND NOT REMOVE~="ALL") AND Installed
Or, if you are expecting users to only run a Minor Upgrade via the InstallShield Setup.exe file, you can just as easily rely on:
IS_MINOR_UPGRADE
(Which we set on the commandline during a Minor Upgrade with our Bootstrapper)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2010
09:17 AM
Thank you for the reply.
I DO appreciate your time.
Ray in Wisconsin
I DO appreciate your time.
Ray in Wisconsin