diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-02-06 06:08:48 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-02-06 06:08:48 (GMT) |
commit | bb24087a2cbfb186b540cc71a74ec8c39c1ebe3a (patch) | |
tree | 3b586e72b5744c4076a222e8f803a00d17b5f20f /Tools/msi/path | |
parent | 7425f36ee74ccf5bfc2894aca6e6b86815894f98 (diff) | |
download | cpython-bb24087a2cbfb186b540cc71a74ec8c39c1ebe3a.zip cpython-bb24087a2cbfb186b540cc71a74ec8c39c1ebe3a.tar.gz cpython-bb24087a2cbfb186b540cc71a74ec8c39c1ebe3a.tar.bz2 |
Issue #23260: Update Windows installer
Diffstat (limited to 'Tools/msi/path')
-rw-r--r-- | Tools/msi/path/path.wixproj | 19 | ||||
-rw-r--r-- | Tools/msi/path/path.wxs | 35 | ||||
-rw-r--r-- | Tools/msi/path/path_en-US.wxl | 6 |
3 files changed, 60 insertions, 0 deletions
diff --git a/Tools/msi/path/path.wixproj b/Tools/msi/path/path.wixproj new file mode 100644 index 0000000..2792e14 --- /dev/null +++ b/Tools/msi/path/path.wixproj @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <ProjectGuid>{91C99298-8E2E-4422-A5AF-CC4FFF9A58D3}</ProjectGuid> + <SchemaVersion>2.0</SchemaVersion> + <OutputName>path</OutputName> + <OutputType>Package</OutputType> + <SuppressIces>ICE71</SuppressIces> + </PropertyGroup> + <Import Project="..\msi.props" /> + <ItemGroup> + <Compile Include="*.wxs" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="*.wxl" /> + </ItemGroup> + + <Import Project="..\msi.targets" /> +</Project>
\ No newline at end of file diff --git a/Tools/msi/path/path.wxs b/Tools/msi/path/path.wxs new file mode 100644 index 0000000..7e462e2 --- /dev/null +++ b/Tools/msi/path/path.wxs @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> + <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" /> + + <PropertyRef Id="UpgradeTable" /> + <PropertyRef Id="REGISTRYKEY" /> + + <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" /> + + <CreateFolder Directory="Scripts" /> + <RemoveFolder Id="Remove_Scripts_CU" Directory="Scripts" On="uninstall" /> + + <Environment Id="PATH_CU" Action="set" Name="PATH" Part="first" Value="[InstallDirectory]" /> + <Environment Id="SCRIPTS_PATH_CU" Action="set" Name="PATH" Part="first" Value="[Scripts]" /> + </Component> + <Component Id="PrependPath_LM" Directory="InstallDirectory" Guid="*"> + <Condition>ALLUSERS=1</Condition> + <RegistryValue KeyPath="yes" Root="HKLM" Key="[REGISTRYKEY]\PrependPath" Value="1" Type="integer" /> + + <CreateFolder Directory="Scripts" /> + <RemoveFolder Id="Remove_Scripts_LM" Directory="Scripts" On="uninstall" /> + + <Environment Id="PATH_LM" Action="set" Name="PATH" Part="first" Value="[InstallDirectory]" System="yes" /> + <Environment Id="SCRIPTS_PATH_LM" Action="set" Name="PATH" Part="first" Value="[Scripts]" System="yes" /> + <Environment Id="PY_PATHEXT_LM" Action="set" Name="PATHEXT" Part="last" Value=".PY" System="yes" /> + <Environment Id="PYW_PATHEXT_LM" Action="set" Name="PATHEXT" Part="last" Value=".PYW" System="yes" /> + </Component> + </Feature> + </Product> +</Wix> + diff --git a/Tools/msi/path/path_en-US.wxl b/Tools/msi/path/path_en-US.wxl new file mode 100644 index 0000000..33a7886 --- /dev/null +++ b/Tools/msi/path/path_en-US.wxl @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization"> + <String Id="Descriptor">Add to Path</String> + <String Id="ShortDescriptor">Path</String> + <String Id="NoPython">No !(loc.ProductName) installation was detected.</String> +</WixLocalization> |