File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/Installers/Windows/SharedFramework Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 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" >
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 -->
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 >
You can’t perform that action at this time.
0 commit comments