Skip to content

Commit ef0bd0f

Browse files
authored
[release/6.0] Uninstalling Hosting Bundle should uninstall chained runtimes (#41057)
1 parent de41c58 commit ef0bd0f

File tree

2 files changed

+28
-32
lines changed

2 files changed

+28
-32
lines changed
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
33
<Fragment>
4+
<util:ProductSearch Id="DotNetRedistLtsProductSearch_x86"
5+
Condition="NOT VersionNT64"
6+
ProductCode="$(var.DotNetRedistLtsInstallerProductCodex86)"
7+
Result="version"
8+
Variable="DotNetRedistLtsProductVersion_x86" />
9+
10+
<util:ProductSearch Id="DotNetRedistLtsProductSearch_x64"
11+
Condition="VersionNT64"
12+
ProductCode="$(var.DotNetRedistLtsInstallerProductCodex64)"
13+
Result="version"
14+
Variable="DotNetRedistLtsProductVersion_x64" />
15+
416
<PackageGroup Id="PG_DOTNET_REDIST_LTS_BUNDLE">
517
<RollbackBoundary Id="RB_DOTNET_REDIST_LTS_BUNDLE" />
618

@@ -12,7 +24,7 @@
1224
InstallCondition="VersionNT64 AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME=&quot;0&quot;)"
1325
InstallCommand="/quiet /norestart"
1426
RepairCommand="/quiet /repair"
15-
Permanent="yes"
27+
UninstallCommand="/quiet /uninstall"
1628
DetectCondition="DotNetRedistLtsProductVersion_x64 = v$(var.DotNetRedistLtsInstallerProductVersionx64)">
1729
</ExePackage>
1830

@@ -24,23 +36,9 @@
2436
InstallCondition="(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME=&quot;0&quot;) AND (NOT OPT_NO_X86 OR OPT_NO_X86=&quot;0&quot;)"
2537
InstallCommand="/quiet /norestart"
2638
RepairCommand="/quiet /repair"
27-
Permanent="yes"
39+
UninstallCommand="/quiet /uninstall"
2840
DetectCondition="DotNetRedistLtsProductVersion_x86 = v$(var.DotNetRedistLtsInstallerProductVersionx86)">
2941
</ExePackage>
3042
</PackageGroup>
3143
</Fragment>
32-
33-
<Fragment>
34-
<util:ProductSearch Id="DotNetRedistLtsProductSearch_x86"
35-
Condition="NOT VersionNT64"
36-
ProductCode="$(var.DotNetRedistLtsInstallerProductCodex86)"
37-
Result="version"
38-
Variable="DotNetRedistLtsProductVersion_x86" />
39-
40-
<util:ProductSearch Id="DotNetRedistLtsProductSearch_x64"
41-
Condition="VersionNT64"
42-
ProductCode="$(var.DotNetRedistLtsInstallerProductCodex64)"
43-
Result="version"
44-
Variable="DotNetRedistLtsProductVersion_x64" />
45-
</Fragment>
4644
</Wix>
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
33
<Fragment>
4+
<util:ProductSearch Id="SharedFxRedistProductSearch_x86"
5+
Condition="NOT VersionNT64"
6+
ProductCode="$(var.SharedFxInstallerProductCodex86)"
7+
Result="version"
8+
Variable="SharedFxRedistProductVersion_x86" />
9+
10+
<util:ProductSearch Id="SharedFxRedistProductSearch_x64"
11+
Condition="VersionNT64"
12+
ProductCode="$(var.SharedFxInstallerProductCodex64)"
13+
Result="version"
14+
Variable="SharedFxRedistProductVersion_x64" />
15+
416
<PackageGroup Id="PG_SHAREDFX_REDIST_BUNDLE">
517
<RollbackBoundary Id="RB_SHAREDFX_REDIST_BUNDLE" />
618

@@ -12,7 +24,7 @@
1224
InstallCondition="VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=&quot;0&quot;)"
1325
InstallCommand="/quiet /norestart"
1426
RepairCommand="/quiet /repair"
15-
Permanent="yes"
27+
UninstallCommand="/quiet /uninstall"
1628
DetectCondition="SharedFxRedistProductVersion_x64 = v$(var.SharedFxInstallerProductVersionx64)">
1729
</ExePackage>
1830

@@ -24,23 +36,9 @@
2436
InstallCondition="(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=&quot;0&quot;) AND (NOT OPT_NO_X86 OR OPT_NO_X86=&quot;0&quot;)"
2537
InstallCommand="/quiet /norestart"
2638
RepairCommand="/quiet /repair"
27-
Permanent="yes"
39+
UninstallCommand="/quiet /uninstall"
2840
DetectCondition="SharedFxRedistProductVersion_x86 = v$(var.SharedFxInstallerProductVersionx86)">
2941
</ExePackage>
3042
</PackageGroup>
3143
</Fragment>
32-
33-
<Fragment>
34-
<util:ProductSearch Id="SharedFxRedistProductSearch_x86"
35-
Condition="NOT VersionNT64"
36-
ProductCode="$(var.SharedFxInstallerProductCodex86)"
37-
Result="version"
38-
Variable="SharedFxRedistProductVersion_x86" />
39-
40-
<util:ProductSearch Id="SharedFxRedistProductSearch_x64"
41-
Condition="VersionNT64"
42-
ProductCode="$(var.SharedFxInstallerProductCodex64)"
43-
Result="version"
44-
Variable="SharedFxRedistProductVersion_x64" />
45-
</Fragment>
4644
</Wix>

0 commit comments

Comments
 (0)