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
30
Tools/msi/doc/doc.wixproj
Normal file
30
Tools/msi/doc/doc.wixproj
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectGuid>{0D62A2BB-5F71-4447-8C8C-9708407B3674}</ProjectGuid>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<OutputName>doc</OutputName>
|
||||
<OutputType>Package</OutputType>
|
||||
<!-- Shortcut validation is not necessary -->
|
||||
<SuppressICEs>ICE43</SuppressICEs>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\msi.props" />
|
||||
<PropertyGroup>
|
||||
<DocFilename>python$(MajorVersionNumber)$(MinorVersionNumber)$(MicroVersionNumber)$(ReleaseLevelName).chm</DocFilename>
|
||||
<IncludeDocFile>false</IncludeDocFile>
|
||||
<IncludeDocFile Condition="$(BuildForRelease) or Exists('$(PySourcePath)Doc\build\htmlhelp\$(DocFilename)')">true</IncludeDocFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(IncludeDocFile)">
|
||||
<DefineConstants>$(DefineConstants);DocFilename=$(DocFilename);</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="doc.wxs" />
|
||||
<Compile Include="doc_files.wxs" Condition="$(IncludeDocFile)" />
|
||||
<Compile Include="doc_no_files.wxs" Condition="!$(IncludeDocFile)" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WxlTemplate Include="*.wxl_template" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\msi.targets" />
|
||||
</Project>
|
26
Tools/msi/doc/doc.wxs
Normal file
26
Tools/msi/doc/doc.wxs
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?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" />
|
||||
|
||||
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
|
||||
<ComponentGroupRef Id="doc" />
|
||||
|
||||
<Component Id="doc_shortcut" Directory="MenuDir" Guid="*">
|
||||
<RegistryKey Root="HKMU" Key="[REGISTRYKEY]">
|
||||
<RegistryValue Key="Help\Main Python Documentation" Type="string" Value="[#python.chm]" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
<Shortcut Id="python.chm"
|
||||
Target="[#python.chm]"
|
||||
Name="!(loc.ShortcutName)"
|
||||
Description="!(loc.ShortcutDescription)" />
|
||||
<RemoveFolder Id="Remove_MenuDir" On="uninstall" />
|
||||
</Component>
|
||||
|
||||
</Feature>
|
||||
</Product>
|
||||
</Wix>
|
7
Tools/msi/doc/doc_en-US.wxl_template
Normal file
7
Tools/msi/doc/doc_en-US.wxl_template
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
|
||||
<String Id="ShortDescriptor">doc</String>
|
||||
<String Id="Descriptor">Documentation</String>
|
||||
<String Id="ShortcutName">Python {{ShortVersion}} {{Bitness}} Manuals</String>
|
||||
<String Id="ShortcutDescription">View the !(loc.ProductName) documentation.</String>
|
||||
</WixLocalization>
|
12
Tools/msi/doc/doc_files.wxs
Normal file
12
Tools/msi/doc/doc_files.wxs
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
<ComponentGroup Id="doc">
|
||||
<Component Id="python.chm" Directory="Doc" Guid="*">
|
||||
<File Id="python.chm" Name="$(var.DocFilename)" KeyPath="yes" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
17
Tools/msi/doc/doc_no_files.wxs
Normal file
17
Tools/msi/doc/doc_no_files.wxs
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<ComponentGroup Id="doc">
|
||||
<!--
|
||||
This file is included when the CHM is not available.
|
||||
|
||||
This way, snapshot builds can succeed without having to
|
||||
build the docs.
|
||||
-->
|
||||
<Component Id="EmptyDocFolder" Directory="Doc" Guid="{22FD42DB-EC66-4B1C-B1FC-44E0CF7B2462}">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id="Remove_EmptyDocFolder" On="uninstall" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
Loading…
Add table
Add a link
Reference in a new issue