-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbletchmame.wxs
68 lines (62 loc) · 3.16 KB
/
bletchmame.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="a0f6babb-15f5-48f9-a000-665f644a7019" Version="$(var.VERSION)" Language="1033" Name="BletchMAME" Manufacturer="BletchMAME">
<Package InstallerVersion="300" Compressed="yes" Platform="x64"/>
<Media Id="1" Cabinet="myapplication.cab" EmbedCab="yes" />
<!-- Step 1: Define the directory structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="BletchMAME">
<Directory Id="PLUGINSDIRECTORY" Name="plugins">
<Directory Id="WorkerUiDirectory" Name="worker_ui"/>
</Directory>
</Directory>
</Directory>
</Directory>
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="BletchMAME.exe" Guid="1cd267f9-1e1d-4205-9289-b857f6c842ea" Win64="yes">
<File Id="BletchMAME.exe" Source="build\msys2\bin\BletchMAME.exe" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="readme.html" Guid="326b1d99-f61a-4ba9-b5a6-794a49a8e246" Win64="yes">
<File Id="readme.html" Source="readme.html" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="WorkerUiDirectory">
<Component Id="plugin.json" Guid="f493b04f-bf32-4616-8ee8-8ea9d20842bd" Win64="yes">
<File Id="plugin.json" Source="plugins\worker_ui\plugin.json" KeyPath="yes"/>
</Component>
<Component Id="init.lua" Guid="81eaf2b9-68a4-482c-9563-65cfe37de768" Win64="yes">
<File Id="init.lua" Source="plugins\worker_ui\init.lua" KeyPath="yes"/>
</Component>
</DirectoryRef>
<!-- Step 3: Tell WiX to install the files -->
<Feature Id="FrontEnd" Title="BletchMAME Front End" Level="1" ConfigurableDirectory="APPLICATIONROOTDIRECTORY">
<ComponentRef Id="BletchMAME.exe" />
</Feature>
<Feature Id="WorkerUiPlugin" Title="Worker UI LUA Plugin" Level="1" ConfigurableDirectory="PLUGINSDIRECTORY">
<ComponentRef Id="plugin.json" />
<ComponentRef Id="init.lua" />
</Feature>
<Feature Id="ReadMeFile" Title="Read Me File" Level="1" ConfigurableDirectory="APPLICATIONROOTDIRECTORY">
<ComponentRef Id="readme.html" />
</Feature>
<!-- Step 4: UX of the installer -->
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
<UIRef Id="WixUI_Mondo" />
<UIRef Id="WixUI_ErrorProgressText" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch BletchMAME" />
<UI>
<Publish Dialog="ExitDialog"
Control="Finish"
Event="DoAction"
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<!-- Step 5: User can launch BletchMAME at the end -->
<Property Id="WixShellExecTarget" Value="[#BletchMAME.exe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
<!--
<Icon Id="BletchMAME.ico" SourceFile="src\bletchmame.ico" />
-->
</Product>
</Wix>