-
-
Notifications
You must be signed in to change notification settings - Fork 356
/
Snoop.wxs
164 lines (141 loc) · 9.92 KB
/
Snoop.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<Wix xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui" xmlns="http://wixtoolset.org/schemas/v4/wxs">
<!-- ID="*" will generate a new GUID for product code at time of build. -->
<!-- Product code changes AND version number changes (first 3 digits), then a major upgrade will be triggered. -->
<Package Name="Snoop" Manufacturer="https://github.com/snoopwpf" Language="1033" Version="$(var.ProductVersion)"
UpgradeCode="FBEC01D7-CE1B-46F4-9498-71A96FEA8A15" InstallerVersion="301">
<MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="Newer version already installed."
AllowSameVersionUpgrades="yes"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high"/>
<Feature Id="ProductFeature" Title="Snoop" Description="Snoop, the WPF Spying Utility" Level="1"
ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="Snoop.Core.net462.dll"/>
<ComponentRef Id="System.Management.Automation.dll"/>
<ComponentRef Id="Snoop.Core.net6.0_windows.dll"/>
<ComponentRef Id="Snoop.GenericInjector.x86.dll"/>
<ComponentRef Id="Snoop.GenericInjector.x64.dll"/>
<ComponentRef Id="Snoop.GenericInjector.ARM64.dll"/>
<ComponentRef Id="Snoop.InjectorLauncher.x86.exe"/>
<ComponentRef Id="Snoop.InjectorLauncher.x64.exe"/>
<ComponentRef Id="Snoop.InjectorLauncher.ARM64.exe"/>
<ComponentRef Id="Snoop.exe"/>
<ComponentRef Id="Snoop.exe.config"/>
<ComponentRef Id="Snoop.com"/>
<ComponentRef Id="Snoop.com.config"/>
<ComponentRef Id="CommandLine.dll"/>
<ComponentRef Id="Root.Snoop.Core.net462.dll"/>
<ComponentRef Id="SnoopScriptsComponent"/>
<ComponentRef Id="ProgramMenuDir"/>
</Feature>
<ui:WixUI Id="WixUI_InstallDir"/>
<WixVariable Id="WixUILicenseRtf" Value="License.rtf"/>
<WixVariable Id="WixUIBannerBmp" Value="..\..\Artwork\Banner.bmp"/>
<WixVariable Id="WixUIDialogBmp" Value="..\..\Artwork\Dialog.bmp"/>
<Icon Id="Snoop.exe" SourceFile="Snoop.exe"/>
<Icon Id="icon.ico" SourceFile="..\..\Artwork\Snoop.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico"/>
<StandardDirectory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="Snoop">
<Directory Id="net462" Name="net462">
<Component Id="Snoop.Core.net462.dll" Guid="{71FAE20E-805A-4182-9860-7480BBD400BF}">
<File Id="Snoop.Core.net462.dll" KeyPath="yes" Source="SourceDir\net462\Snoop.Core.dll"/>
<File Id="Snoop.Core.net462.pdb" Source="SourceDir\net462\Snoop.Core.pdb"/>
</Component>
<Component Id="System.Management.Automation.dll" Guid="{77A47D45-F96D-41CF-BAAC-8CDE0B10350C}">
<File Id="System.Management.Automation.dll" KeyPath="yes"
Source="SourceDir\net462\System.Management.Automation.dll"/>
</Component>
</Directory>
<Directory Id="net60" Name="net6.0-windows">
<Component Id="Snoop.Core.net6.0_windows.dll" Guid="{96a6f0f7-00e7-4c66-9b01-93e07e5f6bd6}">
<File Id="Snoop.Core.net6.0_windows.dll" KeyPath="yes"
Source="SourceDir\net6.0-windows\Snoop.Core.dll"/>
<File Id="Snoop.Core.net6.0_windows.deps.json"
Source="SourceDir\net6.0-windows\Snoop.Core.deps.json"/>
<File Id="Snoop.Core.net6.0_windows.pdb" Source="SourceDir\net6.0-windows\Snoop.Core.pdb"/>
</Component>
</Directory>
<Component Id="Snoop.GenericInjector.x86.dll" Guid="{DCCFD1DE-F53E-428C-95F1-4435FA9AC0CD}">
<File Id="Snoop.GenericInjector.x86.dll" KeyPath="yes"
Source="SourceDir\Snoop.GenericInjector.x86.dll"/>
<File Id="Snoop.GenericInjector.x86.pdb" Source="SourceDir\Snoop.GenericInjector.x86.pdb"/>
</Component>
<Component Id="Snoop.GenericInjector.x64.dll" Guid="{DF9AFA72-A1C6-48C5-9BF0-F00C284FA111}">
<File Id="Snoop.GenericInjector.x64.dll" KeyPath="yes"
Source="SourceDir\Snoop.GenericInjector.x64.dll"/>
<File Id="Snoop.GenericInjector.x64.pdb" Source="SourceDir\Snoop.GenericInjector.x64.pdb"/>
</Component>
<Component Id="Snoop.GenericInjector.ARM64.dll" Guid="{AA6110B0-8B3E-4F86-BF6D-5285F924604F}">
<File Id="Snoop.GenericInjector.ARM64.dll" KeyPath="yes"
Source="SourceDir\Snoop.GenericInjector.ARM64.dll"/>
<File Id="Snoop.GenericInjector.ARM64.pdb" Source="SourceDir\Snoop.GenericInjector.ARM64.pdb"/>
</Component>
<Component Id="Snoop.InjectorLauncher.x86.exe" Guid="{2D10FBCC-4F56-4CD7-A69B-42A2ADEA5065}">
<File Id="Snoop.InjectorLauncher.x86.exe" KeyPath="yes"
Source="SourceDir\Snoop.InjectorLauncher.x86.exe"/>
<File Id="Snoop.InjectorLauncher.x86.exe.config"
Source="SourceDir\Snoop.InjectorLauncher.x86.exe.config"/>
<File Id="Snoop.InjectorLauncher.x86.pdb" Source="SourceDir\Snoop.InjectorLauncher.x86.pdb"/>
</Component>
<Component Id="Snoop.InjectorLauncher.x64.exe" Guid="{2B8C5745-FC92-4617-A7C8-3A2AC4AD6DC8}">
<File Id="Snoop.InjectorLauncher.x64.exe" KeyPath="yes"
Source="SourceDir\Snoop.InjectorLauncher.x64.exe"/>
<File Id="Snoop.InjectorLauncher.x64.exe.config"
Source="SourceDir\Snoop.InjectorLauncher.x64.exe.config"/>
<File Id="Snoop.InjectorLauncher.x64.pdb" Source="SourceDir\Snoop.InjectorLauncher.x64.pdb"/>
</Component>
<Component Id="Snoop.InjectorLauncher.ARM64.exe" Guid="{DCEAE30B-072B-4B39-9A1E-E9AADAED41B1}">
<File Id="Snoop.InjectorLauncher.ARM64.exe" KeyPath="yes"
Source="SourceDir\Snoop.InjectorLauncher.ARM64.exe"/>
<File Id="Snoop.InjectorLauncher.ARM64.dll" Source="SourceDir\Snoop.InjectorLauncher.ARM64.dll"/>
<File Id="Snoop.InjectorLauncher.ARM64.deps.json"
Source="SourceDir\Snoop.InjectorLauncher.ARM64.deps.json"/>
<File Id="Snoop.InjectorLauncher.ARM64.runtimeconfig.json"
Source="SourceDir\Snoop.InjectorLauncher.ARM64.runtimeconfig.json"/>
<File Id="Snoop.InjectorLauncher.ARM64.dll.config"
Source="SourceDir\Snoop.InjectorLauncher.ARM64.dll.config"/>
<File Id="Snoop.InjectorLauncher.ARM64.pdb" Source="SourceDir\Snoop.InjectorLauncher.ARM64.pdb"/>
</Component>
<Component Id="Root.Snoop.Core.net462.dll" Guid="{3DAA043B-7FFB-4CB6-A3C3-D67DF9D0B3D2}">
<File Id="Root.Snoop.Core.dll" KeyPath="yes" Source="SourceDir\Snoop.Core.dll"/>
<File Id="Root.Snoop.Core.pdb" Source="SourceDir\Snoop.Core.pdb"/>
</Component>
<Component Id="Snoop.exe" Guid="{82953F7E-F81D-44E9-8274-D80815109361}">
<File Id="Snoop.exe" KeyPath="yes" Source="SourceDir\Snoop.exe">
<Shortcut Id="desktopSnoopShortcut" Directory="DesktopFolder" Name="Snoop"
WorkingDirectory="INSTALLDIR" Icon="Snoop.exe" IconIndex="0" Advertise="yes"/>
<Shortcut Id="startMenuSnoopShortcut" Directory="ProgramMenuDir" Name="Snoop"
WorkingDirectory="INSTALLDIR" Icon="Snoop.exe" IconIndex="0" Advertise="yes"/>
</File>
<File Id="Snoop.pdb" Source="SourceDir\Snoop.pdb"/>
</Component>
<Component Id="Snoop.exe.config" Guid="{8BB4A7B2-F181-40E8-BCFF-FCC287DA8D06}">
<File Id="Snoop.exe.config" KeyPath="yes" Source="SourceDir\Snoop.exe.config"/>
</Component>
<Component Id="Snoop.com" Guid="{cb40d877-92dc-452a-96c6-65f9a0d64439}">
<File Id="Snoop.com" KeyPath="yes" Source="SourceDir\Snoop.com"/>
</Component>
<Component Id="Snoop.com.config" Guid="{e123e7d3-8371-43b8-b509-651c9cf0f158}">
<File Id="Snoop.com.config" KeyPath="yes" Source="SourceDir\Snoop.com.config"/>
</Component>
<Component Id="CommandLine.dll" Guid="{a6e69fb8-8471-40a4-9a38-a4b31cac0e61}">
<File Id="CommandLine.dll" KeyPath="yes" Source="SourceDir\CommandLine.dll"/>
</Component>
<Directory Id="SnoopScriptsFolder" Name="Scripts">
<Component Id="SnoopScriptsComponent" Guid="65AD97C3-5B32-4020-892C-1D0E38656D6D">
<File Id="SnoopScriptsFile" Name="Snoop.psm1" Source="Scripts\Snoop.psm1"/>
</Component>
</Directory>
</Directory>
</StandardDirectory>
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuDir" Name="Snoop">
<Component Id="ProgramMenuDir" Guid="F04C55F5-09D6-40CD-90E3-FA46E5E4A93D">
<RemoveFolder Id="ProgramMenuDir" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\[ProductName]" Type="string" Value="" KeyPath="yes"/>
</Component>
</Directory>
</StandardDirectory>
<StandardDirectory Id="DesktopFolder"/>
</Package>
</Wix>