Skip to content

Commit 74e666b

Browse files
author
Keith Kikta
committed
Fixed uninstall issue
1 parent 805289f commit 74e666b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

EPMI.ServiceControl.WPF/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ All rights reserved.
7777
// by using the '*' as shown below:
7878
// [assembly: AssemblyVersion("1.0.*")]
7979
[assembly: AssemblyVersion("1.1.0.*")]
80-
[assembly: AssemblyFileVersion("1.1.0.0")]
80+
[assembly: AssemblyFileVersion("1.3.2")]

Setup/Product.wxs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77

88
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
99

10-
<MajorUpgrade DowngradeErrorMessage="A newer version of Service Control is already installed." />
10+
<Upgrade Id="$(var.UpgradeCode)">
11+
<UpgradeVersion Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
12+
<UpgradeVersion Minimum="0.0.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" />
13+
</Upgrade>
14+
15+
<InstallExecuteSequence>
16+
<RemoveExistingProducts After="InstallInitialize" />
17+
<Custom Action="NewerVersion" After="FindRelatedProducts">NEWERVERSIONDETECTED</Custom>
18+
</InstallExecuteSequence>
19+
20+
<CustomAction Id="NewerVersion" Error="A newer version of EPMI Service Control is already installed." />
1121

1222
<!--<MediaTemplate />-->
1323
<Media Id="1" Cabinet="ServiceControl.cab" EmbedCab="yes" />

0 commit comments

Comments
 (0)