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: Upgrade only command line option for installer
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
Jan 11, 2013
02:50 AM
Upgrade only command line option for installer
In Basic MSI project I have install/uninstall/upgrade options.
If the product is already installed, there is the option to either upgrade/remove/repair/modify the software.
By clicking upgrade, it performs upgrade to the newer version if the older version of the product is installed.
If the product is not installed it will perform fresh install. This is the normal behavior for any standard installer.
Now my requirement is, I need to create a silent install option which should work as below (UPGRADE ONLY OPTION).
1. If the product is not installed, installation should exit.
2. If the previous version of product is installed perform upgrade.
3. I wanted this option only for command line, is there a way to achieve this in InstallShield 2011.
If the product is already installed, there is the option to either upgrade/remove/repair/modify the software.
By clicking upgrade, it performs upgrade to the newer version if the older version of the product is installed.
If the product is not installed it will perform fresh install. This is the normal behavior for any standard installer.
Now my requirement is, I need to create a silent install option which should work as below (UPGRADE ONLY OPTION).
1. If the product is not installed, installation should exit.
2. If the previous version of product is installed perform upgrade.
3. I wanted this option only for command line, is there a way to achieve this in InstallShield 2011.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 17, 2013
08:30 AM
You should have a Major Upgrade item called something like UpgradeOlderVersion which sets a flag called ISACTIONPROP1, if not manually create one.
Then add an Error custom action which exits the installer on the condition NOT ISACTIONPROP1. Run this in the execution sequence with an additional condition of UILevel<>5 if you want to be able to bypass it in full UI mode.
Then add an Error custom action which exits the installer on the condition NOT ISACTIONPROP1. Run this in the execution sequence with an additional condition of UILevel<>5 if you want to be able to bypass it in full UI mode.