Skip to content

Commit e91126f

Browse files
WiX: avoid using extended versioning on the MSIs
Avoid semver on Packages and in max version property
1 parent fcbde7e commit e91126f

File tree

9 files changed

+9
-8
lines changed

9 files changed

+9
-8
lines changed

platforms/Windows/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
$(DefineConstants);
9090
ProductArchitecture=$(ProductArchitecture);
9191
ProductVersion=$(ProductVersion);
92+
NonSemVerProductVersion=$(NonSemVerProductVersion);
9293
MajorMinorProductVersion=$(MajorMinorProductVersion);
9394
PackageScope=$(PackageScope);
9495
IsBundleCompressed=$(IsBundleCompressed);

platforms/Windows/bld/bld.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Manufacturer="!(loc.ManufacturerName)"
1212
Name="!(loc.Bld_ProductName)"
1313
UpgradeCode="$(BldUpgradeCode)"
14-
Version="$(ProductVersion)"
14+
Version="$(NonSemVerProductVersion)"
1515
Scope="$(PackageScope)">
1616

1717
<Media Id="1" Cabinet="bld.cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/cli/cli.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Manufacturer="!(loc.ManufacturerName)"
55
Name="!(loc.Cli_ProductName)"
66
UpgradeCode="$(CliUpgradeCode)"
7-
Version="$(ProductVersion)"
7+
Version="$(NonSemVerProductVersion)"
88
Scope="$(PackageScope)">
99

1010
<Media Id="1" Cabinet="cli.cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/dbg/dbg.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Manufacturer="!(loc.ManufacturerName)"
55
Name="!(loc.Dbg_ProductName)"
66
UpgradeCode="$(DbgUpgradeCode)"
7-
Version="$(ProductVersion)"
7+
Version="$(NonSemVerProductVersion)"
88
Scope="$(PackageScope)">
99

1010
<Media Id="1" Cabinet="dbg.cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/ide/ide.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Manufacturer="!(loc.ManufacturerName)"
55
Name="!(loc.Ide_ProductName)"
66
UpgradeCode="$(IdeUpgradeCode)"
7-
Version="$(ProductVersion)"
7+
Version="$(NonSemVerProductVersion)"
88
Scope="$(PackageScope)">
99

1010
<Media Id="1" Cabinet="ide.cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/rtl/msi/rtlmsi.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Manufacturer="!(loc.ManufacturerName)"
55
Name="!(loc.Rtl_ProductName_$(ProductArchitecture))"
66
UpgradeCode="$(RtlUpgradeCode)"
7-
Version="$(ProductVersion)"
7+
Version="$(NonSemVerProductVersion)"
88
Scope="$(PackageScope)">
99

1010
<Media Id="1" Cabinet="rtl.cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/rtl/msm/rtlmsm.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Guid="$(ModuleId)"
1313
Id="swift_runtime"
1414
Language="0"
15-
Version="$(ProductVersion)">
15+
Version="$(NonSemVerProductVersion)">
1616

1717
<ComponentGroupRef Id="swift_runtime_$(ProductArchitecture)" />
1818
</Module>

platforms/Windows/sdk/sdk.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Manufacturer="!(loc.ManufacturerName)"
2121
Name="!(loc.Sdk_ProductName_$(ProductArchitecture))"
2222
UpgradeCode="$(SdkUpgradeCode)"
23-
Version="$(ProductVersion)"
23+
Version="$(NonSemVerProductVersion)"
2424
Scope="$(PackageScope)">
2525

2626
<Media Id="1" Cabinet="sdk.$(ProductArchitecture).cab" EmbedCab="$(ArePackageCabsEmbedded)" />

platforms/Windows/shared/shared.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134

135135
<Upgrade Id="!(wix.SideBySidePackageUpgradeCode)">
136136
<UpgradeVersion Minimum="$(MajorMinorProductVersion).65535" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
137-
<UpgradeVersion Minimum="$(MajorMinorProductVersion).0" IncludeMinimum="yes" Maximum="$(ProductVersion)" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" />
137+
<UpgradeVersion Minimum="$(MajorMinorProductVersion).0" IncludeMinimum="yes" Maximum="$(NonSemVerProductVersion)" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" />
138138
</Upgrade>
139139
</Fragment>
140140

0 commit comments

Comments
 (0)