Hi,
Thank you for the answer.
This is exactly how it is set right now. The point is, I wanted to force the 
Major Upgrade for all the supported Software upgrades, but not for all.

Is there any way to use Upgrade/UpgradeVersion and MajorUpgrade elements next 
to each other within the Product? I have tried that, and it doesn't work, 
because of the same Id's for Upgrade and MajorUpgrade.

The solution with using a wild card as a Product/Id is not much helpful as it 
leaves me end up with the two Software versions installed side-by-side in the 
ControlPanel if I use versions  2.0.0.1 and 2.0.0.5. I know, that MSI does only 
care about the 3 version numbers, not about the 4th one. 

Thank you in advance!

Kindest regards,
Przemyslaw Galera
Software Engineer
IndigoVision 
Tel: +44 (0) 131 475 7336 (x336)
Email: p.gal...@indigovision.com
www.indigovision.com
Complete IP Video Security Solutions


-----Original Message-----
From: David Watson [mailto:dwat...@sdl.com] 
Sent: 04 June 2014 10:39
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] MajorUpgrade element problems

If you want to block the installation you can use the upgradeVersion element 
with OnlyDetect='yes' to set a property to use in a launch condition with your 
error message.

If you want to break the new installation away from the previous versions and 
allow for side by side installation you can change the upgrade guid. 

-----Original Message-----
From: Przemyslaw Galera [mailto:p.gal...@indigovision.com] 
Sent: 04 June 2014 10:02
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] MajorUpgrade element problems

Hello,
Thank you very much for your response.

What hasn't been asked explicitly is: Can I use a MajorUpgrade element and 
prevent the Software from upgrading from particular versions, that are not 
supported?

For example; I don't want to allow upgrades from versions prior to  2.1.0.0? 

Kindest regards,

Przemyslaw Galera
Software Engineer
IndigoVision 
Tel: +44 (0) 131 475 7336 (x336)
Email: p.gal...@indigovision.com
www.indigovision.com
Complete IP Video Security Solutions


-----Original Message-----
From: Jeremiahf [mailto:jeremi...@gmail.com] 
Sent: 02 June 2014 21:15
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] MajorUpgrade element problems

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


------------------------------------------------------------------------------
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
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.



This message has been scanned for malware by Websense. www.websense.com

------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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