mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23260: Update Windows installer
This commit is contained in:
parent
7425f36ee7
commit
bb24087a2c
133 changed files with 7036 additions and 4991 deletions
44
Tools/msi/exe/crtlicense.txt
Normal file
44
Tools/msi/exe/crtlicense.txt
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
|
||||
Additional Conditions for this Windows binary build
|
||||
---------------------------------------------------
|
||||
|
||||
This program is linked with and uses Microsoft Distributable Code,
|
||||
copyrighted by Microsoft Corporation. The Microsoft Distributable Code
|
||||
includes the following files:
|
||||
|
||||
msvcr90.dll
|
||||
msvcp90.dll
|
||||
msvcm90.dll
|
||||
|
||||
If you further distribute programs that include the Microsoft
|
||||
Distributable Code, you must comply with the restrictions on
|
||||
distribution specified by Microsoft. In particular, you must require
|
||||
distributors and external end users to agree to terms that protect the
|
||||
Microsoft Distributable Code at least as much as Microsoft's own
|
||||
requirements for the Distributable Code. See Microsoft's documentation
|
||||
(included in its developer tools and on its website at microsoft.com)
|
||||
for specific details.
|
||||
|
||||
Redistribution of the Windows binary build of the Python interpreter
|
||||
complies with this agreement, provided that you do not:
|
||||
|
||||
- alter any copyright, trademark or patent notice in Microsoft's
|
||||
Distributable Code;
|
||||
|
||||
- use Microsoft's trademarks in your programs' names or in a way that
|
||||
suggests your programs come from or are endorsed by Microsoft;
|
||||
|
||||
- distribute Microsoft's Distributable Code to run on a platform other
|
||||
than Microsoft operating systems, run-time technologies or application
|
||||
platforms; or
|
||||
|
||||
- include Microsoft Distributable Code in malicious, deceptive or
|
||||
unlawful programs.
|
||||
|
||||
These restrictions apply only to the Microsoft Distributable Code as
|
||||
defined above, not to Python itself or any programs running on the
|
||||
Python interpreter. The redistribution of the Python interpreter and
|
||||
libraries is governed by the Python Software License included with this
|
||||
file, or by other licenses as marked.
|
||||
|
36
Tools/msi/exe/exe.props
Normal file
36
Tools/msi/exe/exe.props
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<!-- Shortcut validation is not necessary -->
|
||||
<SuppressICEs>ICE43</SuppressICEs>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\msi.props" />
|
||||
<ItemGroup>
|
||||
<Compile Include="*.wxs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="*.wxl" />
|
||||
<WxlTemplate Include="*.wxl_template" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="_GenerateLicense" AfterTargets="PrepareForBuild">
|
||||
<ItemGroup>
|
||||
<LicenseFiles Include="$(PySourcePath)LICENSE;
|
||||
crtlicense.txt;
|
||||
$(bz2Dir)LICENSE;
|
||||
$(opensslDir)LICENSE;
|
||||
$(tclDir)license.terms;
|
||||
$(tkDir)license.terms;
|
||||
$(tixDir)license.terms" />
|
||||
<_LicenseFiles Include="@(LicenseFiles)">
|
||||
<Content>$([System.IO.File]::ReadAllText(%(FullPath)))</Content>
|
||||
</_LicenseFiles>
|
||||
</ItemGroup>
|
||||
|
||||
<WriteLinesToFile File="$(BuildPath)LICENSE"
|
||||
Overwrite="true"
|
||||
Lines="@(_LicenseFiles->'%(Content)')" />
|
||||
</Target>
|
||||
|
||||
<Import Project="..\msi.targets" />
|
||||
</Project>
|
11
Tools/msi/exe/exe.wixproj
Normal file
11
Tools/msi/exe/exe.wixproj
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{6BD53305-B03E-49DC-85FB-5551B8CCC843}</ProjectGuid>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<OutputName>exe</OutputName>
|
||||
<OutputType>Package</OutputType>
|
||||
<DefineConstants>IncludeDefaultFeature=1;$(DefineConstants)</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<Import Project="exe.props" />
|
||||
</Project>
|
40
Tools/msi/exe/exe.wxs
Normal file
40
Tools/msi/exe/exe.wxs
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?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)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
<?ifdef IncludeDefaultFeature ?>
|
||||
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
|
||||
<ComponentGroupRef Id="exe_python" />
|
||||
<ComponentGroupRef Id="exe_txt" />
|
||||
<ComponentGroupRef Id="exe_icons" />
|
||||
|
||||
<Component Id="exe_shortcut" Directory="MenuDir" Guid="*">
|
||||
<Shortcut Id="python.exe"
|
||||
Target="[#python.exe]"
|
||||
Name="!(loc.ShortcutName)"
|
||||
Description="!(loc.ShortcutDescription)" />
|
||||
<RemoveFolder Id="Remove_MenuDir" Directory="MenuDir" On="uninstall" />
|
||||
<RegistryKey Root="HKMU" Key="[REGISTRYKEY]">
|
||||
<RegistryValue Key="InstallPath" Type="string" Value="[InstallDirectory]" KeyPath="yes" />
|
||||
<RegistryValue Key="InstallPath\InstallGroup" Type="string" Value="Python $(var.ShortVersion)" />
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
</Feature>
|
||||
<?endif ?>
|
||||
<?ifdef IncludeSymbols ?>
|
||||
<Feature Id="Symbols" AllowAdvertise="no" Title="!(loc.TitlePdb)" Description="!(loc.DescriptionPdb)">
|
||||
<ComponentGroupRef Id="exe_python_symbols" />
|
||||
</Feature>
|
||||
<?endif ?>
|
||||
<?ifdef IncludeDebugBinaries ?>
|
||||
<Feature Id="DebugBinaries" AllowAdvertise="no" Title="!(loc.Title_d)" Description="!(loc.Description_d)">
|
||||
<ComponentGroupRef Id="exe_python_d" />
|
||||
</Feature>
|
||||
<?endif ?>
|
||||
</Product>
|
||||
</Wix>
|
11
Tools/msi/exe/exe_d.wixproj
Normal file
11
Tools/msi/exe/exe_d.wixproj
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{B1CA739C-8DB0-403B-9010-D79507507CE9}</ProjectGuid>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<OutputName>exe_d</OutputName>
|
||||
<OutputType>Package</OutputType>
|
||||
<DefineConstants>IncludeDebugBinaries=1;$(DefineConstants)</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<Import Project="exe.props" />
|
||||
</Project>
|
9
Tools/msi/exe/exe_en-US.wxl_template
Normal file
9
Tools/msi/exe/exe_en-US.wxl_template
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
|
||||
<String Id="Descriptor">Executables</String>
|
||||
<String Id="ShortDescriptor">executable</String>
|
||||
<String Id="ShortcutName">Python {{ShortVersion}} ({{Bitness}})</String>
|
||||
<String Id="ShortcutDescription">Launches the !(loc.ProductName) interpreter.</String>
|
||||
<String Id="PathTitle">Add to PATH</String>
|
||||
<String Id="PathDescription">Adds the install directory to PATH and .py to PATHEXT.</String>
|
||||
</WixLocalization>
|
68
Tools/msi/exe/exe_files.wxs
Normal file
68
Tools/msi/exe/exe_files.wxs
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<ComponentGroup Id="exe_txt">
|
||||
<Component Id="LICENSE.txt" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="LICENSE.txt" Source="LICENSE" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Id="NEWS.txt" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="NEWS.txt" Source="!(bindpath.src)Misc\NEWS" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Id="README.txt" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="README.txt" Source="!(bindpath.src)README" KeyPath="yes" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
<ComponentGroup Id="exe_python">
|
||||
<Component Id="python.exe" Directory="InstallDirectory" Guid="$(var.PythonExeComponentGuid)">
|
||||
<File Name="python.exe" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Id="pythonw.exe" Directory="InstallDirectory" Guid="$(var.PythonwExeComponentGuid)">
|
||||
<File Name="pythonw.exe" KeyPath="yes" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<ComponentGroup Id="exe_python_symbols">
|
||||
<Component Id="python.pdb" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="python.pdb" />
|
||||
</Component>
|
||||
<Component Id="pythonw.pdb" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="pythonw.pdb" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<ComponentGroup Id="exe_python_d">
|
||||
<Component Id="python_d.exe" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="python_d.exe" />
|
||||
</Component>
|
||||
<Component Id="python_d.pdb" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="python_d.pdb" />
|
||||
</Component>
|
||||
<Component Id="pythonw_d.exe" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="pythonw_d.exe" />
|
||||
</Component>
|
||||
<Component Id="pythonw_d.pdb" Directory="InstallDirectory" Guid="*">
|
||||
<File Name="pythonw_d.pdb" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<ComponentGroup Id="exe_icons">
|
||||
<Component Id="py.ico" Directory="DLLs" Guid="*">
|
||||
<File Name="py.ico" Source="!(bindpath.src)PC\py.ico" KeyPath="yes" />
|
||||
</Component>
|
||||
<Component Id="pyc.ico" Directory="DLLs" Guid="*">
|
||||
<File Name="pyc.ico" Source="!(bindpath.src)PC\pyc.ico" KeyPath="yes" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
11
Tools/msi/exe/exe_pdb.wixproj
Normal file
11
Tools/msi/exe/exe_pdb.wixproj
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{4A1F7045-8EE2-4276-ABB8-5E0C40E5F38B}</ProjectGuid>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<OutputName>exe_pdb</OutputName>
|
||||
<OutputType>Package</OutputType>
|
||||
<DefineConstants>IncludeSymbols=1;$(DefineConstants)</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<Import Project="exe.props" />
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue