summaryrefslogtreecommitdiffstats
path: root/Tools/msi/path
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-07-09 03:18:44 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-07-09 03:18:44 (GMT)
commit494374922c909bfb7c833032a686cc173762d988 (patch)
tree4824dbeaca517af7abab41a9c1714be71b23d975 /Tools/msi/path
parent9e7a0468ef12dc68a7efc397511ef06407aa835c (diff)
downloadcpython-494374922c909bfb7c833032a686cc173762d988.zip
cpython-494374922c909bfb7c833032a686cc173762d988.tar.gz
cpython-494374922c909bfb7c833032a686cc173762d988.tar.bz2
Issue #24585: Enables build-to-build upgrades that preserve settings.
Rather than using Burn "Persisted" variables we now add registry keys for each added feature. These can be detected by the installer regardless of which version installed them, and we use this for Modify and Upgrade. In particular, Upgrades can't access the Persisted variables, but can find well-known registry keys. There are also some changes to the bootstrap app to properly handle upgrades. Finally, a few minor improvements to the Windows build to keep things tidier.
Diffstat (limited to 'Tools/msi/path')
-rw-r--r--Tools/msi/path/path.wxs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Tools/msi/path/path.wxs b/Tools/msi/path/path.wxs
index 7e462e2..8b37936 100644
--- a/Tools/msi/path/path.wxs
+++ b/Tools/msi/path/path.wxs
@@ -9,7 +9,9 @@
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
<Component Id="PrependPath_CU" Directory="InstallDirectory" Guid="*">
<Condition>NOT ALLUSERS=1</Condition>
- <RegistryValue KeyPath="yes" Root="HKCU" Key="[REGISTRYKEY]\PrependPath" Value="1" Type="integer" />
+ <RegistryKey Root="HKCU" Key="[REGISTRYKEY]">
+ <RegistryValue KeyPath="yes" Key="InstalledFeatures" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" Type="string" />
+ </RegistryKey>
<CreateFolder Directory="Scripts" />
<RemoveFolder Id="Remove_Scripts_CU" Directory="Scripts" On="uninstall" />
@@ -19,7 +21,9 @@
</Component>
<Component Id="PrependPath_LM" Directory="InstallDirectory" Guid="*">
<Condition>ALLUSERS=1</Condition>
- <RegistryValue KeyPath="yes" Root="HKLM" Key="[REGISTRYKEY]\PrependPath" Value="1" Type="integer" />
+ <RegistryKey Root="HKLM" Key="[REGISTRYKEY]">
+ <RegistryValue KeyPath="yes" Key="InstalledFeatures" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" Type="string" />
+ </RegistryKey>
<CreateFolder Directory="Scripts" />
<RemoveFolder Id="Remove_Scripts_LM" Directory="Scripts" On="uninstall" />