-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwix64.xml
executable file
·82 lines (73 loc) · 4.42 KB
/
wix64.xml
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
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package UpgradeCode="{809FD072-8BEC-488F-BFB0-DB05C98E17BA}" Version="0.40" Language="1033" Name="jfCraft" Manufacturer="Peter Quiring" InstallerVersion="300">
<Media Id="1" Cabinet="files.cab" EmbedCab="yes" />
<ui:WixUI Id="WixUI_Minimal" />
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<Icon Id="icon.ico" SourceFile="jfcraft.ico" />
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<!-- Step 1: Define the directory structure -->
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="appfiles" Guid="{23C922B8-9DE1-4EEC-98C9-AE197881DB55}" Bitness="always64">
<File Id="jfcraft.jar" Source="jfcraft.jar" KeyPath="yes" />
<File Id="javaforce.jar" Source="javaforce.jar" />
<File Id="base.zip" Source="base.zip" />
<File Id="audio.zip" Source="audio.zip" />
<File Id="jfassets.zip" Source="jfassets.zip" />
<File Id="readme.txt" Source="readme.txt" />
<File Id="whatsnew.txt" Source="whatsnew.txt" />
<File Id="jfcraft_client.exe" Source="jfcraft-client.exe" />
<File Id="jfcraft_server.exe" Source="jfcraft-server.exe" />
<File Id="jfcraft_launcher.exe" Source="jfcraft-launcher.exe" />
<File Id="title.png" Source="title.png" />
<File Id="jfcraft.ico" Source="jfcraft.ico" />
</Component>
</DirectoryRef>
<!-- Step 2: Add files to your installer package -->
<DirectoryRef Id="PLUGINSDIRECTORY">
<Component Id="pluginfiles" Guid="{A8E4E78B-1113-4654-A96C-56E719842D0A}" Bitness="always64">
<File Id="creeper.jar" Source="plugins/creeper.jar" KeyPath="yes" />
<File Id="domino.jar" Source="plugins/domino.jar" />
<File Id="marioworld.jar" Source="plugins/marioworld.jar" />
</Component>
</DirectoryRef>
<!-- Step 2b: Add the shortcut to your installer package -->
<!-- Change Id to ApplicationProgramsFolder if you want Shortcut in its own folder -->
<StandardDirectory Id="ProgramMenuFolder">
<Component Id="ApplicationShortcutClient" Guid="{5C4535A0-6850-4D47-9B9C-C2DB05BC0D12}">
<Shortcut Id="ApplicationStartMenuShortcutClient" Name="jfCraft" Description="Game" Target="[APPLICATIONROOTDIRECTORY]jfcraft-launcher.exe" WorkingDirectory="APPLICATIONROOTDIRECTORY" />
<!-- Use the following if you want Shortcut in its own folder -->
<!-- <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> -->
<RegistryValue Root="HKCU" Key="Software\Microsoft\jfCraft" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</StandardDirectory>
<!-- Step 2b: Add the shortcut to your installer package -->
<!-- Change Id to ApplicationProgramsFolder if you want Shortcut in its own folder -->
<StandardDirectory Id="ProgramMenuFolder">
<Component Id="ApplicationShortcutServer" Guid="{79DFA284-8E37-479B-924D-D2B55751050E}">
<Shortcut Id="ApplicationStartMenuShortcutServer" Name="jfCraft (Server)" Description="Game" Target="[APPLICATIONROOTDIRECTORY]jfcraft-server.exe" WorkingDirectory="APPLICATIONROOTDIRECTORY" />
<!-- Use the following if you want Shortcut in its own folder -->
<!-- <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> -->
<RegistryValue Root="HKCU" Key="Software\Microsoft\jfCraft" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</StandardDirectory>
<!-- Step 3: Tell WiX to install the files -->
<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="appfiles" />
<ComponentRef Id="pluginfiles" />
<ComponentRef Id="ApplicationShortcutClient" />
<ComponentRef Id="ApplicationShortcutServer" />
<ComponentGroupRef Id="JRE" />
<ComponentGroupRef Id="FFMPEG" />
</Feature>
<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="jfcraft">
<Directory Id="PLUGINSDIRECTORY" Name="plugins" />
</Directory>
</StandardDirectory>
<StandardDirectory Id="ProgramMenuFolder">
<!-- Use the following if you want Shortcut in its own folder -->
<!-- <Directory Id="ApplicationProgramsFolder" Name="jfCraft"/> -->
</StandardDirectory>
</Package>
</Wix>