[wix-users] Building Wix project for sameagain
phill.hogland at rimage.com
Mon Jan 30 06:45:07 PST 2017
"Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field."
If you are talking about the forth part of the MSI ProductVersion (as your example indicates "then ran the msi for version 188.8.131.52") , then this issue has nothing to do with Burn. You either need to change your "requirement" to conform to MSI rules, or write your own Operatings System and equivalent of msiexec.exe, or have a discussion with Microsoft. There is not anything the wix folks can do about a desire to change the MSI ProductVersion behavior.
If you are using a Wix Burn Bundle.exe to chain your MSIs (which must still conform to the MSI ProductVersion rule of ignoring the forth part of a ProductVersion), the bundle.exe can and does use all four parts of the bundle.exe's version. I have found that you will get more than one arp entry for a Bundle.exe if you do not increment any of the four parts between builds. But again Burn does not have any impact on how the msiexec.exe engine processes a MSI ProductVersion string.
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Laique Abbas <laiqueabbas_is at yahoo.com>
Sent: Monday, January 30, 2017 3:54:56 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Building Wix project for sameagain
I think burn is creating this issue. The 2 entries in control panel is the problem.Any help?
On Monday, January 30, 2017 1:36 PM, Laique Abbas <laiqueabbas_is at yahoo.com> wrote:
To add on this, Its doing upgrade on same version but adding two entries in control panel,
On Monday, January 30, 2017 1:17 PM, Laique Abbas <laiqueabbas_is at yahoo.com> wrote:
<Product Id="*" Name="$(var.ScreenAppName)" Language="1033" Version="$(var.Version)" Manufacturer="Afiniti" UpgradeCode="60B8EB97-EEDC-4E3A-A93B-1C83B906FABA"> <Upgrade Id="60B8EB97-EEDC-4E3A-A93B-1C83B906FABA"> <UpgradeVersion Property="REMOVEOLDVERSION" Minimum="0.0.0.0" Maximum="$(var.Version)" IncludeMaximum="yes"/> <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND" Minimum="$(var.Version)" IncludeMinimum="yes" /> </Upgrade>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallValidate" />
I had a requirement to do versioning on 4th bit of Version too so I wrote the above WIX code. Its working perfectly but there is just one problem. I build the WIX solution and then ran the msi for version 184.108.40.206 and then building the solution again for same version and then running the msi results in installation again though it must just give an uninstall option in this case.I think its because of revision number. Well Is there a way to stop permit running the same version msi again ?
Any help would be appreciated.
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users