Skip to content

Commit c85a423

Browse files
committed
FIX: Allow installer to upgrade version
1 parent 88de5a4 commit c85a423

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

CliNetliteInstaller/Product.wxs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<?define version="1.0.0"?>
3+
<?define UpgradeCode="a580c04f-caec-4e18-9134-c4b8f1c8f1be"?>
24
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
35
<Product Id="712c71fd-c6f1-41a6-a634-b6d0a8769002"
46
Name="cli-netlite"
57
Language="1033"
6-
Version="1.0.0.0"
8+
Version="$(var.version)"
79
Manufacturer="David Kornel"
8-
UpgradeCode="a580c04f-caec-4e18-9134-c4b8f1c8f1be">
10+
UpgradeCode="$(var.UpgradeCode)">
911

1012
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
1113
<Media Id="1" Cabinet="clinetlite.cab" EmbedCab="yes" />
1214

1315
<WixVariable Id="WixUILicenseRtf" Value="/LICENSE.rtf" />
1416

15-
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
17+
<MajorUpgrade
18+
AllowDowngrades="no" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."
19+
AllowSameVersionUpgrades="no"
20+
Schedule="afterInstallInitialize"
21+
/>
1622

1723
<UI>
1824
<UIRef Id="Custom_WixUI_Minimal"/>

0 commit comments

Comments
 (0)