Skip to content

Commit 2c2bfaf

Browse files
[release/6.0] Add missing registry keys for Microsoft.AspNetCore.App (#55502)
* Add missing registry keys for Microsoft.AspNetCore.App * Fixup * Capitalization * Fixup * PackageVersion * Targetdir * Try this --------- Co-authored-by: wtgodbe <[email protected]>
1 parent e0540e8 commit 2c2bfaf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Installers/Windows/SharedFramework/Product.wxs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<ComponentRef Id="C_ProductVersion_NonNative" />
6161
<ComponentRef Id="C_ProductInstallDir_NonNative" />
6262
<?endif?>
63+
<ComponentRef Id="C_ProductCentralVersion" />
6364
</ComponentGroup>
6465

6566
<DirectoryRef Id="SharedFolder">
@@ -73,6 +74,12 @@
7374

7475
<?define ProductVersionKey=SOFTWARE\Microsoft\ASP.NET Core\Shared Framework\v$(var.MajorVersion).$(var.MinorVersion)\$(var.PackageVersion)?>
7576

77+
<?ifdef ProductVersionCentralKey?>
78+
<?undef ProductVersionCentralKey?>
79+
<?endif?>
80+
81+
<?define ProductVersionCentralKey=SOFTWARE\dotnet\Setup\InstalledVersions\$(var.Platform)\sharedfx\Microsoft.AspNetCore.App?>
82+
7683
<Component Id="C_ProductVersion">
7784
<?if $(var.Platform)=x64 ?>
7885
<!-- Only install when actually on native architecture -->
@@ -110,5 +117,11 @@
110117
</Component>
111118
<?endif?>
112119
</DirectoryRef>
120+
121+
<Component Id="C_ProductCentralVersion" Directory="TARGETDIR" Win64="no">
122+
<RegistryKey Key="$(var.ProductVersionCentralKey)" Root="HKLM">
123+
<RegistryValue Action="write" Name="$(var.PackageVersion)" Type="integer" Value="1" KeyPath="yes"/>
124+
</RegistryKey>
125+
</Component>
113126
</Fragment>
114127
</Wix>

0 commit comments

Comments
 (0)