Skip to content

Commit

Permalink
Add missing registry keys for Microsoft.AspNetCore.App (#55467)
Browse files Browse the repository at this point in the history
* Add missing registry keys for Microsoft.AspNetCore.App

* Fixup

* Capitalization

* Fixup

* PackageVersion

* Targetdir

* Try this
  • Loading branch information
wtgodbe committed May 2, 2024
1 parent 0bae45e commit 6ef0fe5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Installers/Windows/SharedFramework/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<ComponentRef Id="C_ProductVersion_NonNative" />
<ComponentRef Id="C_ProductInstallDir_NonNative" />
<?endif?>
<ComponentRef Id="C_ProductCentralVersion" />
</ComponentGroup>

<DirectoryRef Id="SharedFolder">
Expand All @@ -73,6 +74,12 @@

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

<?ifdef ProductVersionCentralKey?>
<?undef ProductVersionCentralKey?>
<?endif?>

<?define ProductVersionCentralKey=SOFTWARE\dotnet\Setup\InstalledVersions\$(var.Platform)\sharedfx\Microsoft.AspNetCore.App?>

<Component Id="C_ProductVersion">
<?if $(var.Platform)=x64 ?>
<!-- Only install when actually on native architecture -->
Expand Down Expand Up @@ -110,5 +117,11 @@
</Component>
<?endif?>
</DirectoryRef>

<Component Id="C_ProductCentralVersion" Directory="TARGETDIR" Win64="no">
<RegistryKey Key="$(var.ProductVersionCentralKey)" Root="HKLM">
<RegistryValue Action="write" Name="$(var.PackageVersion)" Type="integer" Value="1" KeyPath="yes"/>
</RegistryKey>
</Component>
</Fragment>
</Wix>

0 comments on commit 6ef0fe5

Please sign in to comment.