-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhv-ms794-config.wxs
74 lines (65 loc) · 2.91 KB
/
hv-ms794-config.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
<?xml version="1.0" encoding="UTF-8"?>
<?define ProductBuild = "1.0.0" ?>
<?define ProductRevision = "0" ?>
<?define ProductName = "hv-ms794-config" ?>
<?define Manufacturer = "[email protected]" ?>
<?define ProductVersion = "$(var.ProductBuild).$(var.ProductRevision)" ?>
<?define UpgradeCode = "{c49b157a-c411-11e8-b274-38deade00e43}" ?>
<?define SrcDir = "$(var.Configuration)" ?>
<?define RequiresAdmin = "True" ?>
<?if $(var.RequiresAdmin)=True ?>
<?define InstallPrivileges = "elevated" ?>
<?define InstallScope = "perMachine" ?>
<?define DstDir = "ProgramFilesFolder" ?>
<?else ?>
<?define InstallPrivileges = "limited" ?>
<?define InstallScope = "perUser" ?>
<?define DstDir = "CommonAppDataFolder" ?>
<?endif ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
Manufacturer="$(var.Manufacturer)"
Name="$(var.ProductName)"
Version="$(var.ProductVersion)"
UpgradeCode="$(var.UpgradeCode)"
Language="1033"
>
<Package Id="*"
InstallPrivileges="$(var.InstallPrivileges)"
InstallerVersion="200"
Manufacturer="$(var.Manufacturer)"
Description="HAVIT HV-MS794 gaming mouse unofficial configuration utility."
SummaryCodepage="1251"
Compressed="yes"
InstallScope="$(var.InstallScope)"
/>
<!-- Major upgrade -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
<UpgradeVersion Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no" IgnoreRemoveFailure="yes" Property="OLDERVERSIONBEINGUPGRADED"/>
</Upgrade>
<Property Id="ARPURLINFOABOUT">https://github.com/pbludov/hv-ms794-config</Property>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="high" />
<Icon Id="product.ico" SourceFile="res/$(var.ProductName).ico" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenuFolder" Name="Programs"/>
<Directory Id="$(var.DstDir)" Name="PFiles">
<Directory Id="INSTALLDIR" Name="$(var.ProductName)" FileSource="$(var.SrcDir)">
<Component Id="C_Application" Guid="*">
<File Id="File_Executable" Name="$(var.ProductName).exe" KeyPath="yes">
<Shortcut Id="Shortcut_Executable" Directory="ProgramMenuFolder" Name="$(var.ProductName)" Advertise="yes" Icon="product.ico"/>
</File>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="Complete" Title="Complete Feature" Level="1">
<ComponentRef Id="C_Application" />
<ComponentGroupRef Id="CG_QtRedist" />
</Feature>
<InstallExecuteSequence>
<AppSearch Before="LaunchConditions"/>
<RemoveExistingProducts After="InstallInitialize" />
</InstallExecuteSequence>
</Product>
</Wix>