forked from python/pymanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsi.wxs
More file actions
139 lines (121 loc) · 6.71 KB
/
msi.wxs
File metadata and controls
139 lines (121 loc) · 6.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Package Language="1033"
Manufacturer="Python Software Foundation"
Name="Python Install Manager"
UpgradeCode="E8B0C18E-35FD-4D63-BDEF-CE8B9E322FE5"
Scope="perMachine"
Version="$(var.version)">
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<MediaTemplate EmbedCab="yes" />
<Icon Id="ARPIcon" SourceFile="setup.ico" />
<Property Id="ARPPRODUCTICON" Value="ARPIcon" />
<Property Id="ARPNOMODIFY" Value="1" />
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="PyManager">
<Directory Id="RUNTIME" Name="runtime" />
<Directory Id="TEMPLATES" Name="templates" />
</Directory>
</StandardDirectory>
<Feature Id="Core">
<ComponentRef Id="ProductComponent" />
<ComponentRef Id="RuntimeComponent" />
<ComponentRef Id="TemplatesComponent" />
<ComponentRef Id="PyShellExt64Component" />
<ComponentRef Id="PyShellExtARM64Component" />
</Feature>
<util:BroadcastEnvironmentChange />
<util:QueryNativeMachine />
<Component Id="ProductComponent" Directory="INSTALLFOLDER" Guid="8BEC1259-B220-499B-9656-DC59B7F5BE24">
<File KeyPath="yes" Source="python.exe" Name="python.exe" Id="python.exe" />
<File Source="pymanager.exe" Name="pymanager.exe" />
<File Source="py.exe" Name="py.exe" />
<File Source="python3.exe" Name="python3.exe" />
<File Source="pythonw.exe" Name="pythonw.exe" Id="pythonw.exe" />
<File Source="pywmanager.exe" Name="pywmanager.exe" />
<File Source="pyw.exe" Name="pyw.exe" />
<File Source="pymanager.json" />
<File Source="vcruntime140.dll" />
<File Source="vcruntime140_1.dll" />
<File Source="version.txt" />
<Environment Id="PATH" Action="set" Name="PATH" Part="last" System="yes" Value="[INSTALLFOLDER]" />
<File Source="_resources\py.ico" Name="py.ico" Id="py.ico" />
<File Source="_resources\pyc.ico" Name="pyc.ico" Id="pyc.ico" />
<File Source="_resources\pyd.ico" Name="pyd.ico" Id="pyd.ico" />
<ProgId Id="Python.File" Description="Python Script" Advertise="no" Icon="py.ico">
<Extension Id="py" ContentType="text/x-python">
<Verb Id="open" TargetFile="python.exe" Argument=""%1" %*" />
</Extension>
</ProgId>
<RegistryValue Root="HKCR" Key="Python.File\shell\EditWithIDLE"
Name="ExplorerCommandHandler"
Value="{C7E29CB0-9691-4DE8-B72B-6719DDC0B4A1}"
Type="string" />
<RegistryValue Root="HKCR" Key="Python.File\shellex\DropHandler"
Value="{EAF5E48F-F54A-4A03-824B-CA880772EE20}"
Type="string" />
<ProgId Id="Python.NoConFile" Description="Python Script (Windowed)" Advertise="no" Icon="py.ico">
<Extension Id="pyw" ContentType="text/x-python">
<Verb Id="open" TargetFile="pythonw.exe" Argument=""%1" %*" />
</Extension>
</ProgId>
<RegistryValue Root="HKCR" Key="Python.NoConFile\shell\EditWithIDLE"
Name="ExplorerCommandHandler"
Value="{C7E29CB0-9691-4DE8-B72B-6719DDC0B4A1}"
Type="string" />
<RegistryValue Root="HKCR" Key="Python.NoConFile\shellex\DropHandler"
Value="{EAF5E48F-F54A-4A03-824B-CA880772EE20}"
Type="string" />
<ProgId Id="Python.CompiledFile" Description="Compiled Python Script" Advertise="no" Icon="pyc.ico">
<Extension Id="pyc" ContentType="application/x-python-code">
<Verb Id="open" TargetFile="python.exe" Argument=""%1" %*" />
</Extension>
</ProgId>
<ProgId Id="Python.Extension" Description="Python Extension Module" Advertise="no" Icon="pyd.ico">
<Extension Id="pyd" ContentType="application/x-python-pyd" />
</ProgId>
<ProgId Id="Python.ArchiveFile" Description="Python Application" Advertise="no" Icon="python.exe">
<Extension Id="pyz" ContentType="application/x-python-zipapp">
<Verb Id="open" TargetFile="python.exe" Argument=""%1" %*" />
</Extension>
</ProgId>
<ProgId Id="Python.NoConArchiveFile" Description="Python Application (Windowed)" Advertise="no" Icon="pythonw.exe">
<Extension Id="pyzw" ContentType="application/x-python-zipapp">
<Verb Id="open" TargetFile="pythonw.exe" Argument=""%1" %*" />
</Extension>
</ProgId>
</Component>
<Component Id="RuntimeComponent" Directory="RUNTIME" Guid="5F682EE9-7D21-4B67-9F63-D85758A45836">
<File Source="runtime\manage.$(var.pydsuffix)" />
<File Source="runtime\_native.$(var.pydsuffix)" />
<File Source="runtime\$(var.pythondllname).dll" />
<File Source="runtime\$(var.pythondllname).zip" />
<File Source="runtime\$(var.pythondllname)._pth" />
</Component>
<Component Id="TemplatesComponent" Directory="TEMPLATES" Guid="3ACC110C-5C33-45C8-9843-A446718930A0">
<File KeyPath="yes" Source="templates\launcher-64.exe" Name="launcher-64.exe" />
<File Source="templates\launcherw-64.exe" Name="launcherw-64.exe" />
<File Source="templates\launcher-arm64.exe" Name="launcher-arm64.exe" />
<File Source="templates\launcherw-arm64.exe" Name="launcherw-arm64.exe" />
<File Source="templates\launcher-32.exe" Name="launcher-32.exe" />
<File Source="templates\launcherw-32.exe" Name="launcherw-32.exe" />
</Component>
<!-- IMAGE_FILE_MACHINE_AMD64 = 0x8664 = 34404 -->
<Component Id="PyShellExt64Component" Directory="INSTALLFOLDER" Guid="D1946F6C-FB98-4395-BE63-D714A221A590"
Condition="WIX_NATIVE_MACHINE = 34404">
<File Source="pyshellext-64.dll">
<Class Id="{C7E29CB0-9691-4DE8-B72B-6719DDC0B4A1}" Advertise="no" Context="InprocServer32" />
<Class Id="{EAF5E48F-F54A-4A03-824B-CA880772EE20}" Advertise="no" Context="InprocServer32" />
</File>
</Component>
<!-- IMAGE_FILE_MACHINE_ARM64 = 0xAA64 = 43620 -->
<Component Id="PyShellExtARM64Component" Directory="INSTALLFOLDER" Guid="D1946F6C-FB98-4395-BE63-D714A221A591"
Condition="WIX_NATIVE_MACHINE = 43620">
<File Source="pyshellext-arm64.dll">
<Class Id="{C7E29CB0-9691-4DE8-B72B-6719DDC0B4A1}" Advertise="no" Context="InprocServer32" />
<Class Id="{EAF5E48F-F54A-4A03-824B-CA880772EE20}" Advertise="no" Context="InprocServer32" />
</File>
</Component>
</Package>
</Wix>