I am packaging an MSI that I would like to have perform a Major Upgrade
when deployed on a machine with an older version of said package already
installed.

My setup:
* Product Id is set to "????????-????-????-????-????????????"
* Upgrade Code is set to <some GUID> which does not change
* The Upgrade clause is set to
<Upgrade Id="<some GUID>">
        <UpgradeVersion
          Minimum="$(var.VERSION)"
          OnlyDetect="yes"
          Property="NEWERVERSIONDETECTED" />
        <UpgradeVersion
          Minimum="1.0.0.0"
          IncludeMinimum="yes"
          Maximum="$(var.VERSION)"
          IncludeMaximum="no"
          Property="OLDERVERSIONBEINGUPGRADED" />
      </Upgrade>

Where var.VERSION is our major.minor.micro.build version number.
* InstallExecuteSequence contains the following entries:
    <RemoveExistingProducts After="InstallFinalize"/>

* The package launches an application upon installation.

Scenarios:
* Install version 1 of package, Install version 2 of package.  Version 2
install notices that version 1 is running and asks for it to be shut
down.  User complies and the install completes normally.  Version 2 is
the only package that appears in Add/Remove Programs.
* Install version 1 of package, Install version 2 of package.  When
asked to shut down running copy of version 1, User hits the Exit button.
   Install informs user that their system was not modified and exits.
Both  versions now appear in Add/Remove Programs.  When the application
is next launched it is version 2.

In the second scenario the install of Version 2 should roll back and
exit as the UI implies.  What do I need to do for this to happen?
Failing that how can I prevent scenario 2?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to