blob: 5a6194cacf1636db95dfbcaff587a0dfb9a97383 (
plain)
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<DirectoryRef Id="BIN">
<Component Id="c_bsondump" Guid="DEEA45CA-5175-453B-9D0B-6168B4C0C891">
<File Id="f_bsondump" Name="bsondump.exe" Source="$(var.ToolBinarySource)\bsondump.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="InstallCompass" Guid="FDB7B7C4-B78F-4A85-8F98-E8E49F6027B2">
<File Id="InstallCompassScript" Name="InstallCompass.ps1" Source="$(var.CompassDir)\Install-Compass.ps1" />
</Component>
<Component Id="c_mongo" Guid="395C3DA5-A905-409C-AD96-29BFFF5E12D6">
<File Id="f_mongo" Name="mongo.exe" Source="$(var.BinarySource)\mongo.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongod" Guid="7EDFB4A2-5A45-4C41-8F6D-976558B3A9D6">
<File Id="f_mongod" Name="mongod.exe" Source="$(var.BinarySource)\mongod.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongodWithService" Guid="1E7C89DA-4B96-41E2-8106-DDBA64631249">
<File Id="f_mongodWithService" Name="mongod.exe" Source="$(var.BinarySource)\mongod.exe"
DiskId ="1" KeyPath="yes"/>
<ServiceInstall Id='MyServiceInstall'
Description="MongoDB Database Server"
Arguments='--config "[BIN]mongod.cfg" --service'
DisplayName='MongoDB Server'
Name='MongoDB'
ErrorControl='normal'
Start='auto'
Type='ownProcess'
Account='[MONGO_SERVICE_FULL_ACCOUNT_NAME]'
Password='[MONGO_SERVICE_ACCOUNT_PASSWORD]'
Vital='yes' />
<ServiceControl Id="StartStopService" Name="MongoDB" Start="install" Stop="both" Remove="uninstall" Wait="no" />
</Component>
<Component Id="c_mongodWithServiceUser" Guid="961B0579-4074-4437-B168-9B6C5E3C9E6A" KeyPath="yes">
<Condition><![CDATA[MONGO_SERVICE_INSTALL AND MONGO_SERVICE_ACCOUNT_TYPE <> "ServiceLocalNetwork"]]></Condition>
<util:User Id="GrantLogonAsService"
Name="[MONGO_SERVICE_ACCOUNT_NAME]"
Domain="[MONGO_SERVICE_ACCOUNT_DOMAIN_GRANT]"
CreateUser="no" LogonAsService="yes" UpdateIfExists="yes" FailIfExists="no" >
<!-- Grant membership to performance counter group so FTDC is happy -->
<util:GroupRef Id="PerfmonGroup" />
</util:User>
</Component>
<Component Id="c_mongodPdb" Guid="8B41A2E2-911C-4399-8E9F-D3C1AD3B9EDD">
<File Id="f_mongodPdb" Name="mongod.pdb" Source="$(var.BinarySource)\mongod.pdb"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongodCfg" Guid="EA715A4C-7C63-4C5C-8F73-A82E84668AEE">
<File Id="f_mongodCfg" Name="mongod.cfg" Source="$(var.ProjectDir)mongod.yaml"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongodump" Guid="FFE32884-ACAD-4EC6-AF84-6BC94F55819E">
<File Id="f_mongodump" Name="mongodump.exe" Source="$(var.ToolBinarySource)\mongodump.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongoexport" Guid="FD5FFDE2-53A1-45F3-9CCA-3AC311DF647C">
<File Id="f_mongoexport" Name="mongoexport.exe" Source="$(var.ToolBinarySource)\mongoexport.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongofiles" Guid="CF8696D3-92B4-4CB9-B4D0-16155D726FE6">
<File Id="f_mongofiles" Name="mongofiles.exe" Source="$(var.ToolBinarySource)\mongofiles.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongoimport" Guid="A4C06F69-2BB3-4068-A7E7-25347CCF01DE">
<File Id="f_mongoimport" Name="mongoimport.exe" Source="$(var.ToolBinarySource)\mongoimport.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongorestore" Guid="72A16D11-242E-4368-93C9-5F6162C548FC">
<File Id="f_mongorestore" Name="mongorestore.exe" Source="$(var.ToolBinarySource)\mongorestore.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongos" Guid="3CA63864-9FA0-4DAE-A664-2BE9A157FB60">
<File Id="f_mongos" Name="mongos.exe" Source="$(var.BinarySource)\mongos.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongosPdb" Guid="F1694AB8-4B0D-4096-AD67-948063FF2A6C">
<File Id="f_mongosPdb" Name="mongos.pdb" Source="$(var.BinarySource)\mongos.pdb"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongostat" Guid="0A881C85-AB39-4247-BADD-C8191F2FFF0C">
<File Id="f_mongostat" Name="mongostat.exe" Source="$(var.ToolBinarySource)\mongostat.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongotop" Guid="616C562D-0504-4F2D-A6E7-CC21A58F9F81">
<File Id="f_mongotop" Name="mongotop.exe" Source="$(var.ToolBinarySource)\mongotop.exe"
DiskId ="1" KeyPath="yes"/>
</Component>
<?if $(var.Edition) = Enterprise ?>
<Component Id="c_mongodecrypt" Guid="B81B0CED-8CAD-4A92-BABC-7C473BBFF44E">
<File Id="f_mongodecrypt" Name="mongodecrypt.exe" Source="$(var.EnterpriseToolBinarySource)\mongodecrypt.exe"
DiskId="1" KeyPath="yes"/>
</Component>
<Component Id="c_mongoldap" Guid="553E4E3D-ED32-4ABA-8F27-3A7525C3145C">
<File Id="f_mongoldap" Name="mongoldap.exe" Source="$(var.EnterpriseToolBinarySource)\mongoldap.exe"
DiskId="1" KeyPath="yes"/>
</Component>
<Component Id="c_sasl" Guid="6632B1B8-9F0C-452C-9101-BE6044471CAC">
<File Id="f_sasl" Name="libsasl.dll" Source="$(var.SaslSource)\libsasl.dll"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_saslPdb" Guid="84DE7D8C-A6D6-4A23-935F-F0FFE3BBC52B">
<File Id="f_saslPdb" Name="libsasl.pdb" Source="$(var.SaslSource)\libsasl.pdb"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmp" Guid="F5E5A889-FC9F-4B9A-BEFD-C8ABC9A92D8D">
<File Id="f_ssnmp" Name="netsnmp.dll" Source="$(var.SnmpSource)\netsnmp.dll"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmpPdb" Guid="6AAB0ACE-C354-4D3A-B490-2AA235647AB3">
<File Id="f_snmpPdb" Name="netsnmp.pdb" Source="$(var.SnmpSource)\netsnmp.pdb"
DiskId="1" KeyPath="yes" />
</Component>
<?endif ?>
<?if $(var.Edition) = Enterprise Or $(var.Edition) = SSL ?>
<Component Id="c_ssleay" Guid="8879033A-F4F7-4879-A7F8-4D81355A47E3">
<File Id="f_ssleay" Name="ssleay32.dll" Source="$(var.SslSource)\ssleay32.dll"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_libeay" Guid="E6CC6AA5-AC71-45EC-803C-71F816E33135">
<File Id="f_libeay" Name="libeay32.dll" Source="$(var.SslSource)\libeay32.dll"
DiskId="1" KeyPath="yes" />
</Component>
<?endif ?>
</DirectoryRef>
<?if $(var.Edition) = Enterprise ?>
<DirectoryRef Id="SNMP">
<Component Id="c_snmpReadme" Guid="B968FBAC-1813-4039-9FED-A607A0E4CBB3">
<File Id="f_snmpReadme" Name="README-snmp.txt" Source="$(var.EnterpriseBase)\docs\README-snmp.txt"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmpConfMaster" Guid="0C8CAA6C-1473-4B14-9EE5-AF5A35B1DD8D">
<File Id="f_snmpConfMaster" Name="mongod.conf.master" Source="$(var.EnterpriseBase)\docs\mongod.conf.master"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmpConfSubagent" Guid="6FB66102-41A7-41BD-BB1F-1987E150FA78">
<File Id="f_snmpConfSubagent" Name="mongod.conf.subagent" Source="$(var.EnterpriseBase)\docs\mongod.conf.subagent"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmpMongodMib" Guid="F3E98C6B-FE42-44E7-8A1F-E47BDDD0A3D7">
<File Id="f_snmpMongodMib" Name="MONGOD-MIB.txt" Source="$(var.EnterpriseBase)\docs\MONGOD-MIB.txt"
DiskId="1" KeyPath="yes" />
</Component>
<Component Id="c_snmpMongodbincMib" Guid="58c6bd8e-a785-48a0-af48-42f6bf9f68b4">
<File Id="f_snmpMongodbincMib" Name="MONGODBINC-MIB.txt" Source="$(var.EnterpriseBase)\docs\MONGODBINC-MIB.txt"
DiskId="1" KeyPath="yes" />
</Component>
</DirectoryRef>
<?endif ?>
<DirectoryRef Id="MONGO_DATA_PATH" >
<Component Id="c_MONGO_DATA_PATH" Guid="F695F048-E262-4871-A31B-0E2361BB4BCB">
<CreateFolder Directory="MONGO_DATA_PATH" >
<util:PermissionEx User="[MONGO_SERVICE_ACCOUNT_NAME]" GenericAll="yes"/>
</CreateFolder>
</Component>
</DirectoryRef>
<DirectoryRef Id="MONGO_LOG_PATH" >
<Component Id="c_MONGO_LOG_PATH" Guid="D7DBC821-5BD2-4EB7-AEFB-7AC92945146D">
<CreateFolder Directory="MONGO_LOG_PATH" >
<util:PermissionEx User="[MONGO_SERVICE_ACCOUNT_NAME]" GenericAll="yes"/>
</CreateFolder>
</Component>
</DirectoryRef>
<?if $(var.Edition) = Enterprise or $(var.Edition) = SSL ?>
<DirectoryRef Id="TARGETDIR">
<Merge Id="m_vcredist" SourceFile="$(var.MergeModulesBasePath)\Microsoft_VC141_CRT_x64.msm" DiskId="1" Language="0"/>
</DirectoryRef>
<?endif ?>
<?if $(var.Edition) = Enterprise ?>
<ComponentGroup Id="cg_EnterpriseBase">
<ComponentRef Id="c_sasl" />
<ComponentRef Id="c_saslPdb" />
<ComponentRef Id="c_ssleay" />
<ComponentRef Id="c_libeay" />
</ComponentGroup>
<ComponentGroup Id="cg_EnterpriseServer">
<ComponentGroupRef Id="cg_EnterpriseBase" />
<ComponentRef Id="c_snmp" />
<ComponentRef Id="c_snmpPdb" />
<ComponentRef Id="c_snmpReadme" />
<ComponentRef Id="c_snmpConfMaster" />
<ComponentRef Id="c_snmpConfSubagent" />
<ComponentRef Id="c_snmpMongodMib" />
<ComponentRef Id="c_snmpMongodbincMib" />
</ComponentGroup>
<?endif ?>
<?if $(var.Edition) = SSL ?>
<ComponentGroup Id="cg_SSLBase">
<ComponentRef Id="c_ssleay" />
<ComponentRef Id="c_libeay" />
</ComponentGroup>
<?endif ?>
</Fragment>
</Wix>
|