Commit bc94fd7b authored by Steve Dower's avatar Steve Dower

Issue #25164: Changes default all-users install directory to match per-user directory.

parent 992ec46a
...@@ -320,6 +320,9 @@ Build ...@@ -320,6 +320,9 @@ Build
Windows Windows
------- -------
- Issue #25164: Changes default all-users install directory to match per-user
directory.
- Issue #25143: Improves installer error messages for unsupported platforms. - Issue #25143: Improves installer error messages for unsupported platforms.
- Issue #25163: Display correct directory in installer when using non-default - Issue #25163: Display correct directory in installer when using non-default
......
...@@ -22,20 +22,22 @@ ...@@ -22,20 +22,22 @@
<Variable Name="ShortVersion" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)" /> <Variable Name="ShortVersion" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)" />
<Variable Name="ShortVersionNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)" /> <Variable Name="ShortVersionNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)" />
<Variable Name="WinVer" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.Suffix32)" />
<Variable Name="WinVerNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.Suffix32)" />
<Variable Name="InstallAllUsers" Value="0" bal:Overridable="yes" /> <Variable Name="InstallAllUsers" Value="0" bal:Overridable="yes" />
<Variable Name="InstallLauncherAllUsers" Value="1" bal:Overridable="yes" /> <Variable Name="InstallLauncherAllUsers" Value="1" bal:Overridable="yes" />
<Variable Name="TargetDir" Value="" bal:Overridable="yes" /> <Variable Name="TargetDir" Value="" bal:Overridable="yes" />
<?if $(var.Platform)~="x64" ?> <?if $(var.Platform)~="x64" ?>
<Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFiles64Folder]$(var.TestPrefix)Python [ShortVersion]" bal:Overridable="yes" /> <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFiles64Folder]$(var.TestPrefix)Python[WinVerNoDot]" bal:Overridable="yes" />
<Variable Name="TargetPlatform" Value="x64" /> <Variable Name="TargetPlatform" Value="x64" />
<?else ?> <?else ?>
<Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFilesFolder]$(var.TestPrefix)Python [ShortVersion]" bal:Overridable="yes" /> <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFilesFolder]$(var.TestPrefix)Python[WinVerNoDot]" bal:Overridable="yes" />
<Variable Name="TargetPlatform" Value="x86" /> <Variable Name="TargetPlatform" Value="x86" />
<?endif ?> <?endif ?>
<Variable Name="DefaultJustForMeTargetDir" Value="[LocalAppDataFolder]Programs\$(var.TestPrefix)Python\Python[ShortVersionNoDot]$(var.Suffix32)" bal:Overridable="yes" /> <Variable Name="DefaultJustForMeTargetDir" Value="[LocalAppDataFolder]Programs\$(var.TestPrefix)Python\Python[WinVerNoDot]" bal:Overridable="yes" />
<Variable Name="OptionalFeaturesRegistryKey" Value="Software\$(var.TestPrefix)Python\PythonCore\[ShortVersion]$(var.Suffix32)\InstalledFeatures" /> <Variable Name="OptionalFeaturesRegistryKey" Value="Software\$(var.TestPrefix)Python\PythonCore\[WinVer]\InstalledFeatures" />
<Variable Name="TargetDirRegistryKey" Value="Software\$(var.TestPrefix)Python\PythonCore\[ShortVersion]$(var.Suffix32)\InstallPath" /> <Variable Name="TargetDirRegistryKey" Value="Software\$(var.TestPrefix)Python\PythonCore\[WinVer]\InstallPath" />
<!-- <!--
An empty string will use the other defaults based on InstallAllUsers An empty string will use the other defaults based on InstallAllUsers
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllDescription)" DisplayName="!(loc.CompileAllDescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -m pip install requests-2.7.0-py2.py3-none-any.whl' InstallCommand='-[WinVer] -m pip install requests-2.7.0-py2.py3-none-any.whl'
UninstallCommand='-$(var.ShortVersion)$(var.Suffix32) -m pip uninstall -y requests' UninstallCommand='-[WinVer] -m pip uninstall -y requests'
Vital="no" Vital="no"
InstallCondition="Include_pip and not LauncherOnly"> InstallCondition="Include_pip and not LauncherOnly">
<Payload SourceFile="requests-2.7.0-py2.py3-none-any.whl" <Payload SourceFile="requests-2.7.0-py2.py3-none-any.whl"
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllDescription)" DisplayName="!(loc.CompileAllDescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' InstallCommand='-[WinVer] $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' RepairCommand='-[WinVer] $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="yes" PerMachine="yes"
Vital="no" Vital="no"
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllODescription)" DisplayName="!(loc.CompileAllODescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' InstallCommand='-[WinVer] -O $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' RepairCommand='-[WinVer] -O $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="yes" PerMachine="yes"
Vital="no" Vital="no"
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllOODescription)" DisplayName="!(loc.CompileAllOODescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' InstallCommand='-[WinVer] -OO $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' RepairCommand='-[WinVer] -OO $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="yes" PerMachine="yes"
Vital="no" Vital="no"
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllDescription)" DisplayName="!(loc.CompileAllDescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' InstallCommand='-[WinVer] $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' RepairCommand='-[WinVer] $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="no" PerMachine="no"
Vital="no" Vital="no"
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllODescription)" DisplayName="!(loc.CompileAllODescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' InstallCommand='-[WinVer] -O $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' RepairCommand='-[WinVer] -O $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="no" PerMachine="no"
Vital="no" Vital="no"
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
SourceFile="py.exe" SourceFile="py.exe"
Compressed="yes" Compressed="yes"
DisplayName="!(loc.CompileAllOODescription)" DisplayName="!(loc.CompileAllOODescription)"
InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' InstallCommand='-[WinVer] -OO $(var.CompileAllCommand)'
RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' RepairCommand='-[WinVer] -OO $(var.CompileAllCommand)'
Permanent="yes" Permanent="yes"
PerMachine="no" PerMachine="no"
Vital="no" Vital="no"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment