-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlaunch_module.wxs
53 lines (53 loc) · 2.51 KB
/
launch_module.wxs
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
<?xml version='1.0'?>
<?if $(var.Platform) = x64 ?>
<?define PkgCode = '76EFA3F5-D7B4-4D2B-94E0-25B5B6C820ED' ?>
<?define DirName = 'ProgramFiles64Folder' ?>
<?define BinDir = 'x64\Release' ?>
<?define CompGuid = '46BCEFDD-EAFE-49A8-9FCB-27371AAC7ABD' ?>
<?else ?>
<?define PkgCode = '9CA91B9B-69A1-494B-A200-44AA4D54BC92' ?>
<?define DirName = 'ProgramFilesFolder' ?>
<?define BinDir = 'Release' ?>
<?define CompGuid = '13D8FC31-04E9-4AC9-AE0B-E28F61DE99B9' ?>
<?endif ?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Module Id='LauncherModule' Language='1033' Version='$(var.Version)'>
<Package Id='$(var.PkgCode)' Description='Merge Module for Python Launcher'
Comments='This module can be merged into Python or a standalone installer'
Manufacturer='$(var.Manufacturer)' InstallerVersion='200' Platform='$(var.Platform)'/>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='$(var.DirName)' Name='PFiles'>
<Directory Id='ProgDir' Name='Python Launcher'>
<Component Id='launchmod' Guid='$(var.CompGuid)'>
<File Id='py' Name='py.exe' Source='$(var.BinDir)\py.exe' />
<File Id='pyw' Name='pyw.exe' Source='$(var.BinDir)\pyw.exe' />
<File Id='ini' Name='py.ini' Source='$(var.BinDir)\py.ini' />
<ProgId Id='Python.File' Description='Python File'
Icon='py' IconIndex='1'>
<Extension Id='py'>
<Verb Id='open' Command='Open' TargetFile='py' Argument='"%1" %*'/>
</Extension>
</ProgId>
<ProgId Id='Python.NoConFile' Description='Python File (no console)'
Icon='py' IconIndex='1'>
<Extension Id='pyw'>
<Verb Id='open' Command='Open' TargetFile='pyw' Argument='"%1" %*'/>
</Extension>
</ProgId>
<ProgId Id='Python.CompiledFile' Description='Compiled Python File'
Icon='py' IconIndex='2'>
<Extension Id='pyc'>
<Verb Id='open' Command='Open' TargetFile='py' Argument='"%1" %*'/>
</Extension>
<Extension Id='pyo'>
<!-- No Verb needed here, as it's associated with ProgId
and not the extension, and the same launcher
is used. -->
</Extension>
</ProgId>
</Component>
</Directory>
</Directory>
</Directory>
</Module>
</Wix>