-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathaws-otel-collector.wxs
104 lines (96 loc) · 3.33 KB
/
aws-otel-collector.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
<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
UpgradeCode="B7C263DD-95A5-436A-A025-DCA5200C2BE3"
Name="ADOT Collector"
Version="0.0.1"
Codepage='1252'
Manufacturer="Amazon.com, Inc."
Language="1033">
<Package Id='*'
Keywords='Installer'
Description="ADOT Collector Installer"
Comments='Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.'
Manufacturer='Amazon.com, Inc.'
InstallerVersion='200'
Languages='1033'
Compressed='yes'
SummaryCodepage='1252'
InstallScope="perMachine"
Platform="x64"
/>
<MediaTemplate EmbedCab="yes"/>
<Feature Id="ProductFeature" Title="ADOT Collector" Level="1">
<ComponentRef Id="ApplicationComponent"/>
<ComponentRef Id='Ctl'/>
<ComponentRef Id='AOCAGENT_VERSION'/>
<ComponentRef Id='LICENSE'/>
<ComponentRef Id='CommonConfigYML'/>
<ComponentRef Id='CreateLogsFolder'/>
<ComponentRef Id='CreateConfigsFolder'/>
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id='ProgramFiles64Folder'>
<Directory Id='PFilesAmazon' Name='Amazon'>
<Directory Id='INSTALLDIR' Name='AWSOTelCollector'/>
</Directory>
</Directory>
<Directory Id='CommonAppDataFolder' Name='AppDataFolder'>
<Directory Id='AppDataFolderAmazon' Name='Amazon'>
<Directory Id='Config' Name='AWSOTelCollector'>
<Directory Id="Configs" Name="Configs"/>
<Directory Id='Logs' Name='Logs'/>
</Directory>
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="INSTALLDIR">
<Component Id="ApplicationComponent" Guid="5f344c26-c8f5-4a10-83c0-0651399fb8ff" Win64='yes'>
<File Id="ExecutableFile" Name=".aws-otel-collector.exe" KeyPath="yes" Source="./build/windows/amd64/aoc"/>
<ServiceInstall
Id="Sevice"
Name="AWSOTelCollector"
DisplayName="ADOT Collector"
Description="Collects, processes, and exports telemetry from various configurable sources."
Type="ownProcess"
Vital="yes"
Start="auto"
Account="LocalSystem"
ErrorControl="normal"
Arguments=" --config="[INSTALLDIR]config.yaml""
Interactive="no">
</ServiceInstall>
<ServiceControl
Id="StartService"
Name="AWSOTelCollector"
Stop="both"
Remove="uninstall"
Wait="yes" />
</Component>
<Component Id='Ctl' Guid='dc332e07-822a-495c-8c88-281e9c6d753e' Win64='yes'>
<File Source='./tools/ctl/windows/aws-otel-collector-ctl.ps1' KeyPath='yes'/>
</Component>
<Component Id='AOCAGENT_VERSION' Guid='f4ddf7bf-48fc-41f6-a914-4153a7cf0afc' Win64='yes'>
<File Source='./VERSION' KeyPath='yes'/>
</Component>
<Component Id='LICENSE' Guid='ac70ef6c-8ec4-4a91-8059-2c18543df863' Win64='yes'>
<File Source='./LICENSE' KeyPath='yes'/>
</Component>
</DirectoryRef>
<DirectoryRef Id="Config">
<Component Id='CommonConfigYML' Guid='293f73c5-1f51-4e65-86e3-97425ec75c94' Win64='yes' NeverOverwrite='yes' Permanent='yes'>
<File Source='./config.yaml' KeyPath='yes'/>
</Component>
</DirectoryRef>
<DirectoryRef Id="Logs">
<Component Id='CreateLogsFolder' Guid='fe9042cb-a4fa-4b8e-9852-685a342338b5' Win64='yes'>
<CreateFolder />
</Component>
</DirectoryRef>
<DirectoryRef Id="Configs">
<Component Id='CreateConfigsFolder' Guid='c860d000-ed10-11e8-8eb2-f2801f1b9fd1' Win64='yes'>
<CreateFolder />
</Component>
</DirectoryRef>
</Product>
</Wix>