-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiMC.wxs
More file actions
85 lines (74 loc) · 3.84 KB
/
MultiMC.wxs
File metadata and controls
85 lines (74 loc) · 3.84 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
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!-- Define product information -->
<Product Id="*"
Name="MultiMC"
Language="1033"
Version="1.0.0"
Manufacturer="MultiMC Contributors"
UpgradeCode="E394B061-B4A5-4692-ABD9-B72BABFABD1A">
<!-- Define package information -->
<Package InstallerVersion="200"
Compressed="yes"
InstallScope="perUser"
Description="Installer for MultiMC Minecraft launcher"
Comments="MultiMC is a free, open source launcher for Minecraft" />
<!-- Use WiX built-in UI -->
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<Property Id="INSTALLFOLDER_DEFAULT" Value="[LocalAppDataFolder]MultiMC" />
<!-- Allow upgrades and prevent downgrades -->
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<!-- Define the installation media -->
<Media Id="1" Cabinet="MultiMC.cab" EmbedCab="yes" />
<!-- Define the directory structure -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="LocalAppDataFolder">
<Directory Id="INSTALLFOLDER" Name="MultiMC">
<!-- The actual files will be added here during the build process -->
</Directory>
</Directory>
<!-- Add Start Menu shortcut -->
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="MultiMC"/>
</Directory>
<!-- Add Desktop shortcut -->
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<!-- Define the components to install -->
<Feature Id="ProductFeature" Title="MultiMC" Level="1">
<ComponentGroupRef Id="MultiMCFiles" />
<ComponentRef Id="ApplicationShortcut" />
<ComponentRef Id="DesktopShortcut" />
</Feature>
<!-- Define shortcuts -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="*">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="MultiMC"
Description="Minecraft launcher with advanced features"
Target="[INSTALLFOLDER]MultiMC.exe"
WorkingDirectory="INSTALLFOLDER">
</Shortcut>
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\MultiMC" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="DesktopFolder">
<Component Id="DesktopShortcut" Guid="*">
<Shortcut Id="ApplicationDesktopShortcut"
Name="MultiMC"
Description="Minecraft launcher with advanced features"
Target="[INSTALLFOLDER]MultiMC.exe"
WorkingDirectory="INSTALLFOLDER">
</Shortcut>
<RegistryValue Root="HKCU" Key="Software\MultiMC" Name="desktop_shortcut" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
<!-- License and custom UI settings -->
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
</Product>
</Wix>