Write the InstallLocation to fixed registry key (#13576)

This commit is contained in:
Heath Stewart 2020-09-10 11:33:07 -07:00 committed by GitHub
parent cbb33138ce
commit af6d9fbe14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,6 +181,7 @@
The upgrade code is used in the key because it will change when we allow SxS -->
<RegistryKey Root="HKLM" Key="Software\Microsoft\PowerShellCore\InstalledVersions\$(var.UpgradeCode)" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Type="string" Value="$(var.ProductSemanticVersion)" Name="SemanticVersion" KeyPath="yes"/>
<RegistryValue Type="string" Value="[VersionFolder]" Name="InstallLocation" />
</RegistryKey>
</Component>
<Component Id="SharedRegistryEntries">