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 60
60
<ComponentRef Id =" C_ProductVersion_NonNative" />
61
61
<ComponentRef Id =" C_ProductInstallDir_NonNative" />
62
62
<?endif ?>
63
+ <ComponentRef Id =" C_ProductCentralVersion" />
63
64
</ComponentGroup >
64
65
65
66
<DirectoryRef Id =" SharedFolder" >
73
74
74
75
<?define ProductVersionKey =SOFTWARE\Microsoft\ASP.NET Core \Shared Framework \v$(var.MajorVersion).$(var.MinorVersion)\$(var.PackageVersion)?>
75
76
77
+ <?ifdef ProductVersionCentralKey ?>
78
+ <?undef ProductVersionCentralKey ?>
79
+ <?endif ?>
80
+
81
+ <?define ProductVersionCentralKey =SOFTWARE\dotnet\Setup\InstalledVersions\$(var.Platform)\sharedfx\Microsoft.AspNetCore.App?>
82
+
76
83
<Component Id =" C_ProductVersion" >
77
84
<?if $(var.Platform)=x64 ?>
78
85
<!-- Only install when actually on native architecture -->
110
117
</Component >
111
118
<?endif ?>
112
119
</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 >
113
126
</Fragment >
114
127
</Wix >
You can’t perform that action at this time.
0 commit comments