-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheatwave.wxs
117 lines (89 loc) · 6.44 KB
/
heatwave.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
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
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<!-- Define the product -->
<Package Name="The Fastest Mouse Clicker for Windows" Language="1033" Version="2.6.2" Manufacturer="The Fastest Mouse Clicker for Windows" UpgradeCode="10E7FD14-FECD-4E64-9B19-F8F07D755A30" Scope="perUser"><!-- Package details -->
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallFinalize" />
<!-- Define the media (required for the installer) -->
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Icon Id="AppIcon1" SourceFile=".\v2.6.2.0\fix\TheFastestMouseClicker.exe" />
<!-- Include the license agreement -->
<WixVariable Id="WixUILicenseRtf" Value=".\_license.rtf" />
<!-- UI customization -->
<WixVariable Id="WixUIBannerBmp" Value=".\img_top.bmp" />
<WixVariable Id="WixUIDialogBmp" Value=".\img_dialog.bmp" />
<!-- Set properties for add/remove programs -->
<Property Id="ARPPRODUCTICON" Value="AppIcon1" />
<Property Id="ARPHELPLINK" Value="https://help.com" />
<!-- Populate APPLICATIONFOLDER from the registry if the key exists -->
<Property Id="PREVAPPLICATIONFOLDER">
<RegistrySearch Id="FindInstallFolder" Root="HKCU" Key="Software\TheFastestMouseClicker" Name="InstallPath" Type="directory" />
</Property>
<SetDirectory
Id="APPLICATIONFOLDER"
Value="[PREVAPPLICATIONFOLDER]"
Sequence="ui"
Condition="PREVAPPLICATIONFOLDER" />
<!-- Define WIXUI_INSTALLDIR based on PREVAPPLICATIONFOLDER or APPLICATIONFOLDER -->
<Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch The Fastest Mouse Clicker for Windows" />
<Property Id="WixShellExecTarget" Value="[#MyAppExe]" />
<CustomAction Id="LaunchApplication" DllEntry="WixShellExec" Impersonate="yes" BinaryRef="Wix4UtilCA_X86" />
<UI>
<ui:WixUI Id="WixUI_InstallDir" />
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication" Condition="WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed" />
</UI>
<!-- Define the feature tree -->
<Feature Id="MainApplication" Title="The Fastest Mouse Clicker for Windows" Level="1">
<ComponentRef Id="MyAppExecutable" />
<ComponentRef Id="MyAppRegistry" />
<ComponentRef Id="MyAppCopySettings" />
<ComponentRef Id="StartMenuShortcutComponent" />
</Feature>
<!-- Include Custom.DLL (not installed, but used during installation) -->
<Binary Id="CustomDLL" SourceFile=".\build2\Release\UnRAR0.dll" />
<!-- Custom action to call OnInstall() from Custom.DLL -->
<CustomAction Id="CallOnInstall" DllEntry="OnInstall" Execute="immediate" BinaryRef="CustomDLL" Impersonate="yes" />
<CustomAction Id="CallOnUnInstall" DllEntry="OnUnInstall" Execute="immediate" BinaryRef="CustomDLL" Impersonate="yes" />
<!-- Schedule custom actions -->
<InstallExecuteSequence>
<!-- Call method1() during installation, reinstallation, or downgrade -->
<Custom Action="CallOnInstall" After="InstallFiles" Condition="NOT Installed OR REINSTALL" />
<!-- Call method2() during final uninstallation -->
<Custom Action="CallOnUnInstall" After="RemoveFiles" Condition="REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE" />
</InstallExecuteSequence>
<!-- Define the directory structure -->
<StandardDirectory Id="LocalAppDataFolder">
<Directory Id="APPLICATIONFOLDER" Name="TheFastestMouseClicker">
<!-- Add the executable -->
<Component Id="MyAppExecutable" Guid="10E7FD14-FECD-4E64-9B19-F8F07D755A31">
<File Id="MyAppExe" Name="TheFastestMouseClicker.exe" Source=".\v2.6.2.0\fix\TheFastestMouseClicker.exe" KeyPath="no">
<Shortcut Id="desktopFoobar10" Directory="DesktopFolder" Name="The Fastest Mouse Clicker for Windows" WorkingDirectory="APPLICATIONFOLDER" Icon="AppIcon1" IconIndex="0" Advertise="no" />
</File>
<File Id="TheFastestMouseGroupClicker.exe" Name="TheFastestMouseGroupClicker.exe" Source=".\v2.6.2.0\fix\TheFastestMouseGroupClicker.exe" KeyPath="no" />
<File Id="tfmcfw_disp.dll" Name="tfmcfw_disp.dll" Source=".\v2.6.2.0\fix\tfmcfw_disp.dll" KeyPath="no" />
<File Id="tfmcfw_g_disp.dll" Name="tfmcfw_g_disp.dll" Source=".\v2.6.2.0\fix\tfmcfw_g_disp.dll" KeyPath="no" />
<File Id="tfmcfw.dll" Name="tfmcfw.dll" Source=".\v2.6.2.0\fix\tfmcfw.dll" KeyPath="no" />
<File Id="tfmcfw_g.dll" Name="tfmcfw_g.dll" Source=".\v2.6.2.0\fix\tfmcfw_g.dll" KeyPath="no" />
<RemoveFile Id="DatFile" On="uninstall" Name="settings.dat" />
</Component>
<Component Id="MyAppRegistry" Guid="10E7FD14-FECD-4E64-9B19-F8F07D755A32">
<RegistryValue Root="HKCU" Key="Software\TheFastestMouseClicker" Name="InstallPath" Type="string" Value="[APPLICATIONFOLDER]" KeyPath="yes" />
<RemoveRegistryKey Root="HKCU" Key="Software\TheFastestMouseClicker" Action="removeOnUninstall" />
</Component>
<Component Id="MyAppCopySettings" Guid="10E7FD14-FECD-4E64-9B19-F8F07D755A33">
<CopyFile Id="CopySettingsFile" DestinationProperty="APPLICATIONFOLDER" SourceName="settings.dat" SourceProperty="PREVAPPLICATIONFOLDER" />
</Component>
</Directory>
</StandardDirectory>
<StandardDirectory Id="DesktopFolder" />
<!-- Per-user Start Menu Folder (e.g., C:\Users\<Username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs) -->
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuSubfolder" Name="The Fastest Mouse Clicker for Windows">
<!-- Component for the Start Menu shortcut -->
<Component Id="StartMenuShortcutComponent" Guid="10E7FD14-FECD-4E64-9B19-F8F07D755A35">
<!-- Shortcut to the application executable -->
<Shortcut Id="StartMenuShortcut" Name="The Fastest Mouse Clicker for Windows" Target="[APPLICATIONFOLDER]TheFastestMouseClicker.exe" WorkingDirectory="APPLICATIONFOLDER" />
</Component>
</Directory>
</StandardDirectory>
</Package>
</Wix>