[wix-users] Updates with Major.Minor.Build.Revision needed
Magi, Sampattakumar S
Sampattakumar.Magi at in.unisys.com
Wed Aug 10 03:57:37 PDT 2016
Install higher verision, trigger lower version msi, leave it as. Open the log check ,
If this prop is being set, then
3. Write CA to warn user , use above prop
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steffen Vogel
Sent: Wednesday, August 10, 2016 4:02 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Updates with Major.Minor.Build.Revision needed
Dear WIX-mailing list,
I am working on an installer that installs our companies products. As we
only use the 4th version, (for example 220.127.116.11 or 18.104.22.1685) in our
buildsystem, I was explicitly told to make the installer work with it so we
don't have to change it (all our products are doing this).
It should upgrade older versions and, if not preventing it which would be
the best, at least should warn if you are going to do a downgrade.
As I don't know how to trigger the updates etc. manually, and do not really
want to do this stuff manually, I am using the MajorUpgrade-tag in the
Schedule ="afterInstallInitialize" />
This handles the updates really fine but allows downgrades if only the 4th
version differs, which is not good.
I am now searching for a possibility to prevent users from doing a
Additionally, I before used the <Upgrade>-tag with <UpgradeVersion> which
filled me some properties (,NEWERVERSIONDETECTED',
,OLDERVERSIONBEINGUPGRADED' or ,SELFFOUND') depending on what was going on.
With using the <MajorUpgrade>-tag, these aren't getting filled anymore and
my conditions won't work anymore as expected.
Now I am asking you to please help me find a good solution in which the
installer uses all (Major.Minor.Build.Revision) for version comparison,
which prevents downgrades with a specific error message and tells me what's
going on via properties or something so I can schedule my actions depending
Or is there any better idea???
Any help is strongly appreciated!!!
Many many thanks,
I tried to write my own custom action that could take a path to a file and
the current installers version and gets the files version from it, so we
have something to compare.
With this custom action I can set properties like ,NEWERVERSIONDETECTED',
,OLDERVERSIONBEINGUPGRADED' or ,SELFFOUND'. If I find a new version for
example, I will set ,NEWERVERSIONDETECTED' to ,1'.
But I don't know if it's really good / safe and how to schedule it
correctly, I think is has to run before the Welcome dialog is being
displayed but I am relatively new to WIX and don't know enough about
sequences in WIX.
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users