FYI there is not an attachment.

This is how I used to do it before my requirements changed...

will upgrade 1.1.1.1 to 1.1.2.1 and not allow a downgrade.

keep the Upgradecode static and the product/Package Ids to "*"

I use a config.wxi file that I include into product.wxs then reference the
values with variables.

Up to you how to implement the values though...

Example:

    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Minimum="$(var.InstallerProductVersion)"
OnlyDetect="no" Property="NEWERVERSIONDETECTED"/>
      <UpgradeVersion Minimum="$(var.InitialProductVersion)"
Maximum="$(var.InstallerProductVersion)" OnlyDetect="no"
IncludeMinimum="yes" IncludeMaximum="no"
                      Property="OLDVERSIONBEINGUPGRADED" />
    </Upgrade>

<Condition Message="A newer version of [ProductName] is already
installed.">NOT NEWERVERSIONDETECTED</Condition>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallFinalize"/>
      <LaunchConditions After="AppSearch" />
      <FindRelatedProducts Before="AppSearch"/>
<The rest of your execute sequence>...
    </InstallExecuteSequence>

In order to meet version control by the 4th version number you would have
to use this (It is NOT a good practice.)

There are other threads explaining why in detail. You should also research
how Microsoft handles version control to get more info in detail.

This allows 1.1.1.1 to upgrade to 1.1.1.2 and not downgrade to 1.1.0.1 or
1.1.0.2. Pretty much what you are seeing in a sense.
    <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="You
cannot downgrade to [ProductName]" Schedule="afterInstallFinalize"/>


    <InstallExecuteSequence>
      <LaunchConditions After="AppSearch" />
      <FindRelatedProducts Before="AppSearch"/>


Thank you,

J



On Mon, Jun 2, 2014 at 10:06 AM, Przemyslaw Galera <
p.gal...@indigovision.com> wrote:

> Hi there!
> I have a terrible problem with using the MajorUpgrade element in the
> current installer we have. We tended to use the Upgrade element having
> different error messages for different versions by using UpgradeVersion
> property.
> We wanted this behaviour to persist and to force the Major upgrade for all
> the software upgrades. (Changing the Product.Id by using a wildcard and
> using old UpgradeVersion is not the solution as it makes the installer
> downgrading between builds with no errors - from 2.3.4.6 to 2.3.4.2 ,
> having two software versions installed side-by-side).
>
>
> MajorUpgrade:
> -------------------------------------------
> It is not possible to specify the Minimum or Maximum upgradable software
> version for this element, because the UpgradeVersion is not supported by
> MajorUpgrade element, which prevents from creating the custom actions with
> different error codes for particular software versions.
> -------------------------------------------
> Trying to work it around:
>
> Using the MajorUpgrade element side by side with Upgrade element is not
> possible, as the MajorUpgrade's default Id is set to Product.UpgradeCode
> which clashes with Upgrade.Id being set the same.
> There are error messages attached to the email.
>
> Could you please help? :)
>
> Thanks!
> Przemyslaw Galera
> Software Engineer
> IndigoVision
> Tel: +44 (0) 131 475 7336 (x336)
> Email: p.gal...@indigovision.com<mailto:p.gal...@indigovision.com>
> www.indigovision.com<http://www.indigovision.com/>
> Complete IP Video Security Solutions
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to