-
Notifications
You must be signed in to change notification settings - Fork 6
/
yass.wxs
127 lines (108 loc) · 5.76 KB
/
yass.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
118
119
120
121
122
123
124
125
126
127
<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<?if $(var.Platform) = arm64 ?>
<?define MinimumInstallerVersion = '500' ?>
<?elseif $(var.Platform) = x64 ?>
<?define MinimumInstallerVersion = '200' ?>
<?else ?>
<?define MinimumInstallerVersion = '100' ?>
<?endif ?>
<?if $(var.Platform) = x64 or $(var.Platform) = arm64 ?>
<?define ProductName = 'Yet Another Shadow Socket (64 bit)' ?>
<?define Win64 = 'yes' ?>
<?define PlatformProgramFilesFolder = 'ProgramFiles64Folder' ?>
<?else ?>
<?define ProductName = 'Yet Another Shadow Socket' ?>
<?define Win64 = 'no' ?>
<?define PlatformProgramFilesFolder = 'ProgramFilesFolder' ?>
<?endif ?>
<Product Name='$(var.ProductName)' Id='YOURGUID' UpgradeCode='83F393F8-069C-4FF2-94D5-A40ACFDCF603'
Language='1033' Codepage='1252' Version='$(var.Version)' Manufacturer='Chilledheart.'>
<Package InstallerVersion='$(var.MinimumInstallerVersion)' Compressed='yes' InstallScope='perMachine' Platform='$(var.Platform)' />
<Upgrade Id='83F393F8-069C-4FF2-94D5-A40ACFDCF603'>
<UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND' Minimum='1.0.0' IncludeMinimum='no' />
</Upgrade>
<Binary Id='taskkill_exe' SourceFile='C:\Windows\System32\TASKKILL.exe' />
<CustomAction Id='StopYass' BinaryKey='taskkill_exe' ExeCommand='/F /IM yass.exe /T'
Execute='immediate' Impersonate='yes' Return='ignore' />
<InstallExecuteSequence>
<Custom Action='StopYass' Before='InstallValidate'>
(REMOVE="ALL") OR UPGRADINGPRODUCTCODE OR WIX_UPGRADE_DETECTED
</Custom>
</InstallExecuteSequence>
<Condition Message='YASS requires Windows XP or above'>
VersionNT >= 501
</Condition>
<MediaTemplate EmbedCab='yes' CompressionLevel='high' />
<Property Id='DiskPrompt' Value="Chilledheart's YASS Installation [1]" />
<Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />
<Icon Id='ARPIcon' SourceFile='..\src\win32\yass.ico' />
<Property Id='ARPPRODUCTICON' Value='ARPIcon' />
<Property Id='DISABLEADVTSHORTCUTS' Value='1' />
<Property Id='REGISTRYKEY' Value='Software\YetAnotherShadowSocket' />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='$(var.PlatformProgramFilesFolder)'>
<Directory Id='INSTALLDIR' Name='YASS'/>
</Directory>
<Directory Id='ProgramMenuFolder'>
<Directory Id='MenuDir' Name='YASS' />
</Directory>
</Directory>
<ComponentGroup Id='exe_yass'>
<Component Id='yass.exe' Directory='INSTALLDIR' Win64='$(var.Win64)' Guid='3E5E8F97-4E9A-4B11-B334-611CE0AFFC54'>
<File Name='yass.exe' Source='yass.exe' KeyPath='yes'/>
<!-- %CRASHPAD_HANDLER_HOLDER% -->
<RegistryKey Root='HKMU' Key='[REGISTRYKEY]'>
<RegistryValue Key='InstallPath' Type='string' Value='[INSTALLDIR]' KeyPath='no' />
<RegistryValue Key='InstallPath' Name='ExecutablePath' Type='string' Value='[#yass.exe]' KeyPath='no' />
</RegistryKey>
</Component>
</ComponentGroup>
<ComponentGroup Id='exe_dll'>
<Component Id='SupportLibrary' Directory='INSTALLDIR' Win64='$(var.Win64)' Guid='3BEB0AD7-044F-4FB6-9CF1-C53D45600722'>
<CreateFolder/>
<!-- %DLLPLACEHOLDER% -->
<!--
<File Name='Support.dll' Source='Support.dll' KeyPath='yes' />
-->
</Component>
</ComponentGroup>
<ComponentGroup Id='exe_license'>
<Component Id='License' Directory='INSTALLDIR' Win64='$(var.Win64)' Guid='CD8DB265-5EC1-4631-8CDB-8E935F1AFDFA'>
<!-- %LICENSEPLACEHOLDER% -->
<!--
<File Name='LICENSE' Source='LICENSE' KeyPath='yes' />
-->
</Component>
</ComponentGroup>
<ComponentGroup Id='exe_shortcut'>
<Component Id='Shortcut' Directory='MenuDir' Guid='E9D83A2A-7F75-4558-A718-795DAA3021E4'>
<Shortcut Id='ApplicationStartMenuShortCut'
Name='YASS'
Description='Launch YASS'
Target='[INSTALLDIR]yass.exe'
WorkingDirectory='INSTALLDIR' />
<Shortcut Id='UninstallProduct'
Name='Uninstall YASS'
Target='[SystemFolder]msiexec.exe'
IconIndex='0'
Arguments='/x [ProductCode]' />
<RemoveFolder Id='Remove_MenuDir' Directory='MenuDir' On='uninstall' />
<RegistryKey Root='HKMU' Key='[REGISTRYKEY]'>
<RegistryValue Key='InstalledFeatures' Name='Shortcuts' Type='string' Value='1' KeyPath='yes' />
</RegistryKey>
</Component>
</ComponentGroup>
<Feature Id='DefaultFeature' Title='YASS' Description='The YASS package.' ConfigurableDirectory='INSTALLDIR'>
<Feature Id='DefaultFeatures' AllowAdvertise='no' Title='Program' Description='The main executable.' Level='1'>
<ComponentGroupRef Id='exe_yass' Primary='yes' />
<ComponentGroupRef Id='exe_dll' Primary='yes' />
<ComponentGroupRef Id='exe_license' />
<ComponentGroupRef Id='exe_shortcut' />
</Feature>
</Feature>
<UIRef Id='WixUI_InstallDir' />
<UIRef Id='WixUI_ErrorProgressText' />
<WixVariable Id='WixUILicenseRtf' Value='..\GPL-2.0.rtf' />
</Product>
</Wix>