cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raghuhb
Level 2

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.
Labels (1)
0 Kudos
(1) Reply
Nick_Umanski
Level 7

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.
0 Kudos