1 | <?xml version='1.0' encoding='windows-1252'?>
|
---|
2 | <!--
|
---|
3 | VirtualBox Windows Installation Script (WiX)
|
---|
4 |
|
---|
5 | Copyright (C) 2014-2016 Oracle Corporation
|
---|
6 |
|
---|
7 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | available from http://www.virtualbox.org. This file is free software;
|
---|
9 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | General Public License (GPL) as published by the Free Software
|
---|
11 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | -->
|
---|
15 |
|
---|
16 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
---|
17 | xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
|
---|
18 |
|
---|
19 | <?include Properties.wxi ?>
|
---|
20 |
|
---|
21 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
22 | <!-- The merge module file names -->
|
---|
23 | <?define Property_VBoxMergeApp = "$(env.VBOX_WIN_INST_MERGE_APP)" ?>
|
---|
24 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
25 | <?define Property_VBoxMergeCOM32On64 = "$(env.VBOX_WIN_INST_MERGE_COM32ON64)" ?>
|
---|
26 | <?endif ?>
|
---|
27 | <?define Property_VBoxMergeUSB = "$(env.VBOX_WIN_INST_MERGE_USB)" ?>
|
---|
28 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
29 | <?define Property_VBoxMergeNetworkFlt = "$(env.VBOX_WIN_INST_MERGE_NETFLT)" ?>
|
---|
30 | <?endif ?>
|
---|
31 | <?define Property_VBoxMergeNetworkAdp = "$(env.VBOX_WIN_INST_MERGE_NETADP)" ?>
|
---|
32 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
33 | <?define Property_VBoxMergeNetworkLwf = "$(env.VBOX_WIN_INST_MERGE_NETLWF)" ?>
|
---|
34 | <?endif ?>
|
---|
35 | <?define Property_VBoxMergeNetworkAdp6 = "$(env.VBOX_WIN_INST_MERGE_NETADP6)" ?>
|
---|
36 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
37 | <?define Property_VBoxMergePython = "$(env.VBOX_WIN_INST_MERGE_PYTHON)" ?>
|
---|
38 | <?endif ?>
|
---|
39 | <?endif ?>
|
---|
40 |
|
---|
41 | <Product Id="*"
|
---|
42 | UpgradeCode="C4BAD770-BFE8-4D2C-A592-693028A7215B"
|
---|
43 | Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
|
---|
44 | Language="!(loc.LANG)"
|
---|
45 | Codepage="1252"
|
---|
46 | Version="$(var.Property_Version)"
|
---|
47 | Manufacturer="$(env.VBOX_VENDOR)">
|
---|
48 |
|
---|
49 | <Package Id="*"
|
---|
50 | Keywords="Installer"
|
---|
51 | Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
|
---|
52 | Comments="$(env.VBOX_PRODUCT) installation package"
|
---|
53 | Compressed="yes"
|
---|
54 | Manufacturer="$(env.VBOX_VENDOR)"
|
---|
55 | InstallerVersion="200"
|
---|
56 | InstallPrivileges="elevated"
|
---|
57 | Platform="$(var.Property_Platform)"/>
|
---|
58 |
|
---|
59 | <!-- Global properties -->
|
---|
60 | <Property Id="ARPPRODUCTICON">IconVirtualBox</Property>
|
---|
61 | <Property Id="ARPURLINFOABOUT">http://www.virtualbox.org</Property>
|
---|
62 | <Property Id="ARPURLUPDATEINFO">http://www.virtualbox.org</Property>
|
---|
63 |
|
---|
64 | <Property Id="NETWORKTYPE" Value="NDIS6" Secure="yes"/>
|
---|
65 |
|
---|
66 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
|
---|
67 | <!-- Force NDIS5 on pre-Vista -->
|
---|
68 | <SetProperty Id="NETWORKTYPE" After="LaunchConditions" Value="NDIS5"><![CDATA[(VersionNT < 600)]]></SetProperty>
|
---|
69 | <?endif ?>
|
---|
70 |
|
---|
71 | <!-- Whether or not registering of known desktop shortcut for the Quick Launch Bar should be created -->
|
---|
72 | <Property Id="VBOX_REGISTERFILEEXTENSIONS" Value="1" Secure="yes"/>
|
---|
73 |
|
---|
74 | <SetProperty Id="VBOX_REGISTERFILEEXTENSIONS" After="AppSearch" Sequence="both" Value="{}">
|
---|
75 | <![CDATA[VBOX_REGISTERFILEEXTENSIONS="0"]]>
|
---|
76 | </SetProperty>
|
---|
77 |
|
---|
78 |
|
---|
79 | <!-- Install the product for all users on the system -->
|
---|
80 | <Property Id="ALLUSERS"><![CDATA[1]]></Property>
|
---|
81 |
|
---|
82 | <!-- Force overwriting all files and re-create shortcuts to guarantee a working environment -->
|
---|
83 | <Property Id='REINSTALLMODE' Value='amus'/>
|
---|
84 |
|
---|
85 | <?include PublicProperties.wxi ?>
|
---|
86 |
|
---|
87 | <!-- Make sure installation will not start on anything other but the NT family -->
|
---|
88 | <?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
|
---|
89 | <Condition Message="!(loc.Only64Bit)">
|
---|
90 | VersionNT64
|
---|
91 | </Condition>
|
---|
92 | <?else ?>
|
---|
93 | <Condition Message="!(loc.Only32Bit)">
|
---|
94 | NOT VersionNT64
|
---|
95 | </Condition>
|
---|
96 |
|
---|
97 | <Condition Message="!(loc.WrongOS)">
|
---|
98 | NOT VersionNT=500 AND NOT Version9X AND NOT VersionNT64
|
---|
99 | </Condition>
|
---|
100 |
|
---|
101 | <?endif ?>
|
---|
102 |
|
---|
103 | <Condition Message="!(loc.NeedAdmin)">
|
---|
104 | Privileged
|
---|
105 | </Condition>
|
---|
106 |
|
---|
107 | <!-- Detect old innotek installation -->
|
---|
108 | <!-- Force a manual uninstall of an already installed innotek VirtualBox version first -->
|
---|
109 | <Property Id="VBOXINNOTEK">
|
---|
110 | <RegistrySearch Id="RegSearchInnotekVersion" Root="HKLM" Key="SOFTWARE\Innotek\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
111 | </Property>
|
---|
112 | <Condition Message="!(loc.InnotekFound)">
|
---|
113 | NOT VBOXINNOTEK
|
---|
114 | </Condition>
|
---|
115 |
|
---|
116 |
|
---|
117 | <!-- *************************** Upgrade packages only ******************************* -->
|
---|
118 | <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
|
---|
119 | IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
|
---|
120 | (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
|
---|
121 | IncludeMaximum = no only finds those below the Maximum).
|
---|
122 | OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
|
---|
123 | only change files in the package -->
|
---|
124 |
|
---|
125 | <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
|
---|
126 |
|
---|
127 | <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
|
---|
128 | <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
|
---|
129 | <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no" OnlyDetect="no" />
|
---|
130 |
|
---|
131 | <!-- Flag is set if the install will trigger an upgrade of an existing install -->
|
---|
132 | <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
|
---|
133 |
|
---|
134 | </Upgrade>
|
---|
135 |
|
---|
136 | <!-- The product's icon table -->
|
---|
137 | <Icon Id="IconVirtualBox" SourceFile="$(env.VBOX_WINDOWS_ICON_FILE)" />
|
---|
138 |
|
---|
139 | <!-- The media/binary IDs -->
|
---|
140 | <!--
|
---|
141 | The effects of CompressionLevel options:
|
---|
142 | default/mszip, high: 32.54s
|
---|
143 | -rw-rw-rw- 1 bird 0 53 591 221 2016-09-25 03:56 common.cab
|
---|
144 | -rw-rw-rw- 1 bird 0 41 560 082 2016-09-25 03:56 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
145 | high, high: 46.76s
|
---|
146 | -rw-rw-rw- 1 bird 0 53 591 221 2016-09-25 03:49 common.cab
|
---|
147 | -rw-rw-rw- 1 bird 0 34 056 210 2016-09-25 03:49 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
148 | medium, medium: 29.95s
|
---|
149 | -rw-rw-rw- 1 bird 0 56 293 089 2016-09-25 03:53 common.cab
|
---|
150 | -rw-rw-rw- 1 bird 0 35 498 002 2016-09-25 03:54 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
151 | low, low: 25.41s
|
---|
152 | -rw-rw-rw- 1 bird 0 57 616 155 2016-09-25 03:52 common.cab
|
---|
153 | -rw-rw-rw- 1 bird 0 37 181 458 2016-09-25 03:52 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
154 | mszip/default, mszip/default: 16.13s
|
---|
155 | -rw-rw-rw- 1 bird 0 58 751 954 2016-09-25 03:49 common.cab
|
---|
156 | -rw-rw-rw- 1 bird 0 41 560 082 2016-09-25 03:50 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
157 | none, none: 2.37s
|
---|
158 | -rw-rw-rw- 1 bird 0 92 470 301 2016-09-25 03:47 common.cab
|
---|
159 | -rw-rw-rw- 1 bird 0 135 874 578 2016-09-25 03:47 VirtualBox-5.1.51-r110887_en_US.msi
|
---|
160 |
|
---|
161 | We set the level in the VBOX_CAB_COMPRESSION_LEVEL and VBOX_CAB_COMPRESSION_LEVEL_COMMON
|
---|
162 | environment variables so we don't waste time compressing and decompressing the intermediate
|
---|
163 | language MSIs and the common.cab that we're not going to use (x86).
|
---|
164 | -->
|
---|
165 | <Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL)" />
|
---|
166 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
|
---|
167 | <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
|
---|
168 | <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL_COMMON)" />
|
---|
169 | <?endif ?>
|
---|
170 | <?endif ?>
|
---|
171 | <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
|
---|
172 |
|
---|
173 | <!-- Custom actions -->
|
---|
174 |
|
---|
175 | <!-- Figure out where a previous installation was, if any -->
|
---|
176 | <?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
|
---|
177 | <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
|
---|
178 | Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
|
---|
179 |
|
---|
180 | <Property Id="EXISTINGINSTALLDIR" Secure="yes">
|
---|
181 | <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
|
---|
182 | Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
183 | </Property>
|
---|
184 | <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
|
---|
185 | <?else ?>
|
---|
186 | <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
|
---|
187 | Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
|
---|
188 |
|
---|
189 | <Property Id="EXISTINGINSTALLDIR" Secure="yes">
|
---|
190 | <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
|
---|
191 | Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
192 | </Property>
|
---|
193 | <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
|
---|
194 | <?endif ?>
|
---|
195 | <CustomAction Id="ca_UninstallTAPInstances" BinaryKey="VBoxInstallHelper"
|
---|
196 | DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
197 |
|
---|
198 | <Property Id="VBOXDEPENDENCY" Secure="yes">
|
---|
199 | <DirectorySearch Id="VBoxInstallDir" Path="[EXISTINGINSTALLDIR]">
|
---|
200 | <FileSearch Name="dependency.dep"/>
|
---|
201 | </DirectorySearch>
|
---|
202 | </Property>
|
---|
203 |
|
---|
204 | <!--
|
---|
205 | install upgrade uninstall
|
---|
206 | VBOXDEPENDENCY 0 1/0 1/0
|
---|
207 | UPGRADINGPRODUCTCODE 0 1 0
|
---|
208 | final 0 1 0
|
---|
209 | not final 1 0 1
|
---|
210 | -->
|
---|
211 |
|
---|
212 | <Condition Message="It was detected an application which has been using currently installed VirtualBox version.
|
---|
213 | You must remove this application before continuing installation.
|
---|
214 | See the file dependency.dep in the VirtualBox installation directory for details. ">
|
---|
215 | NOT (VBOXDEPENDENCY AND UPGRADINGPRODUCTCODE)
|
---|
216 | </Condition>
|
---|
217 |
|
---|
218 | <!-- Detect old Sun installation -->
|
---|
219 | <!-- Force a manual uninstall of an already installed Sun VirtualBox version first -->
|
---|
220 | <!--<Property Id="VBOXSUN">
|
---|
221 | <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
|
---|
222 | </Property>
|
---|
223 | <Condition Message="!(loc.SunFound)">
|
---|
224 | NOT VBOXSUN
|
---|
225 | </Condition>-->
|
---|
226 |
|
---|
227 | <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand="[INSTALLDIR]\VirtualBox.exe" Return="asyncNoWait" Impersonate="yes" />
|
---|
228 | <CustomAction Id="ca_CheckSerial" BinaryKey="VBoxInstallHelper" DllEntry="CheckSerial" Impersonate="no"/>
|
---|
229 |
|
---|
230 | <CustomAction Id="ca_InstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
231 | <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
232 |
|
---|
233 | <CustomAction Id="ca_UninstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
|
---|
234 | <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
|
---|
235 |
|
---|
236 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
|
---|
237 | <?include VBoxMergeAppCA.wxi ?>
|
---|
238 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
239 | <?include VBoxMergeCOM32On64CA.wxi ?>
|
---|
240 | <?endif ?>
|
---|
241 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
242 | <?include VBoxMergeNetFltCA.wxi ?>
|
---|
243 | <?include VBoxMergeNetLwfCA.wxi ?>
|
---|
244 | <?endif ?>
|
---|
245 | <?include VBoxMergeNetAdpCA.wxi ?>
|
---|
246 | <?include VBoxMergeNetAdp6CA.wxi ?>
|
---|
247 | <?include VBoxMergeUSBCA.wxi ?>
|
---|
248 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
249 | <?include VBoxMergePythonCA.wxi ?>
|
---|
250 | <?endif ?>
|
---|
251 | <?endif ?>
|
---|
252 |
|
---|
253 | <Directory Id="TARGETDIR" Name="SourceDir">
|
---|
254 | <Directory Id="$(var.Property_ProgramFiles)" Name="PFiles">
|
---|
255 | <Directory Id="VENDOR" Name="$(env.VBOX_VENDOR_SHORT)">
|
---|
256 | <Directory Id="INSTALLDIR" Name="VirtualBox">
|
---|
257 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
258 | <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1">
|
---|
259 | <ConfigurationData Name="argRegesterExtensions" Value="[VBOX_REGISTERFILEEXTENSIONS]"/>
|
---|
260 | </Merge>
|
---|
261 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
262 | <Merge Id="msm_VBoxCOM32On64" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
|
---|
263 | <?endif ?>
|
---|
264 | <?else ?>
|
---|
265 | <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
|
---|
266 | <?include VBoxMergeApp.wxi ?>
|
---|
267 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
268 | <?include VBoxMergeCOM32On64.wxi ?>
|
---|
269 | <?endif ?>
|
---|
270 | </Directory>
|
---|
271 | <?endif ?>
|
---|
272 | <Directory Id="dir_Drivers" Name="drivers">
|
---|
273 | <Directory Id="dir_USB" Name="USB">
|
---|
274 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
275 | <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
|
---|
276 | <?else ?>
|
---|
277 | <Directory Id="msm_VBoxUSBFolder" FileSource=".">
|
---|
278 | <?include VBoxMergeUSB.wxi ?>
|
---|
279 | </Directory>
|
---|
280 | <?endif ?>
|
---|
281 | </Directory>
|
---|
282 | <Directory Id="dir_Network" Name="network">
|
---|
283 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
284 | <Directory Id="dir_NetFlt" Name="netflt">
|
---|
285 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
286 | <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1">
|
---|
287 | <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]"/>
|
---|
288 | </Merge>
|
---|
289 | <?else ?>
|
---|
290 | <Directory Id="msm_VBoxNetworkFltFolder" FileSource=".">
|
---|
291 | <?include VBoxMergeNetFlt.wxi ?>
|
---|
292 | </Directory>
|
---|
293 | <?endif ?>
|
---|
294 | </Directory>
|
---|
295 | <?endif ?>
|
---|
296 | <Directory Id="dir_NetAdp" Name="netadp">
|
---|
297 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
298 | <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1">
|
---|
299 | <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]"/>
|
---|
300 | </Merge>
|
---|
301 | <?else ?>
|
---|
302 | <Directory Id="msm_VBoxNetworkAdpFolder" FileSource=".">
|
---|
303 | <?include VBoxMergeNetAdp.wxi ?>
|
---|
304 | </Directory>
|
---|
305 | <?endif ?>
|
---|
306 | </Directory>
|
---|
307 |
|
---|
308 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
309 | <Directory Id="dir_NetLwf" Name="netlwf">
|
---|
310 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
311 | <Merge Id="msm_VBoxNetworkLwf" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkLwf)" DiskId="1">
|
---|
312 | <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]"/>
|
---|
313 | </Merge>
|
---|
314 | <?else ?>
|
---|
315 | <Directory Id="msm_VBoxNetworkLwfFolder" FileSource=".">
|
---|
316 | <?include VBoxMergeNetLwf.wxi ?>
|
---|
317 | </Directory>
|
---|
318 | <?endif ?>
|
---|
319 | </Directory>
|
---|
320 | <?endif ?>
|
---|
321 | <Directory Id="dir_NetAdp6" Name="netadp6">
|
---|
322 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
323 | <Merge Id="msm_VBoxNetworkAdp6" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp6)" DiskId="1">
|
---|
324 | <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]"/>
|
---|
325 | </Merge>
|
---|
326 | <?else ?>
|
---|
327 | <Directory Id="msm_VBoxNetworkAdp6Folder" FileSource=".">
|
---|
328 | <?include VBoxMergeNetAdp6.wxi ?>
|
---|
329 | </Directory>
|
---|
330 | <?endif ?>
|
---|
331 | </Directory>
|
---|
332 | </Directory>
|
---|
333 | </Directory>
|
---|
334 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
335 | <Directory Id="dir_SDK" Name="sdk">
|
---|
336 | <Directory Id="dir_SDKInstall" Name="install">
|
---|
337 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
338 | <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
|
---|
339 | <?else ?>
|
---|
340 | <Directory Id="msm_VBoxPythonFolder" FileSource=".">
|
---|
341 | <?include VBoxMergePython.wxi ?>
|
---|
342 | </Directory>
|
---|
343 | <?endif ?>
|
---|
344 | </Directory>
|
---|
345 | </Directory>
|
---|
346 | <?endif ?>
|
---|
347 | <!-- Set up special directory IDs for referencing to the start menu
|
---|
348 | or the Quick Launch bar.
|
---|
349 | See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
|
---|
350 | http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
|
---|
351 | <Directory Id="ProgramMenuFolder">
|
---|
352 | <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
|
---|
353 | </Directory>
|
---|
354 |
|
---|
355 | <Directory Id="DesktopFolder" Name="Desktop"/>
|
---|
356 |
|
---|
357 | <Directory Id="AppDataFolder" Name="AppData">
|
---|
358 | <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
|
---|
359 | <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
|
---|
360 | <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
|
---|
361 | </Directory>
|
---|
362 | </Directory>
|
---|
363 | </Directory>
|
---|
364 |
|
---|
365 | <!-- Start menu entries. -->
|
---|
366 | <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
|
---|
367 | <Condition>VBOX_INSTALLSTARTMENUENTRIES</Condition>
|
---|
368 | <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
369 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
370 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
|
---|
371 | Type="string" Value="installed" KeyPath="yes" />
|
---|
372 | <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
|
---|
373 | </Component>
|
---|
374 |
|
---|
375 | <!-- Desktop shortcut. -->
|
---|
376 | <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
|
---|
377 | <Condition>VBOX_INSTALLDESKTOPSHORTCUT</Condition>
|
---|
378 | <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
379 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
380 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
|
---|
381 | Value="installed" KeyPath="yes" />
|
---|
382 | </Component>
|
---|
383 |
|
---|
384 | <!-- QuickLaunch shortcut. -->
|
---|
385 | <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
|
---|
386 | <CreateFolder/>
|
---|
387 | <Condition>VBOX_INSTALLQUICKLAUNCHSHORTCUT</Condition>
|
---|
388 | <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
|
---|
389 | Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
|
---|
390 | <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
|
---|
391 | Type="string" Value="installed" KeyPath="yes" />
|
---|
392 | </Component>
|
---|
393 | </Directory>
|
---|
394 | </Directory>
|
---|
395 | </Directory>
|
---|
396 | </Directory> <!-- TARGETDIR -->
|
---|
397 |
|
---|
398 | <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
|
---|
399 | otherwise this will break manual selection using the ADDLOCAL= syntax
|
---|
400 | when using the command line / scripts (see VBox manual). -->
|
---|
401 | <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
|
---|
402 | Description="!(loc.VB_App)"
|
---|
403 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
404 | Absent="disallow" AllowAdvertise="no" >
|
---|
405 | <!-- Components which are handled only by this installer itself -->
|
---|
406 | <ComponentRef Id="cp_StartMenuVBox" />
|
---|
407 | <ComponentRef Id="cp_DesktopShortcut" />
|
---|
408 | <ComponentRef Id="cp_QuickLaunchVBox" />
|
---|
409 | <!-- Components handled either by the installer itself or
|
---|
410 | the merge module -->
|
---|
411 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
412 | <MergeRef Id="msm_VBoxApp" />
|
---|
413 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
414 | <MergeRef Id="msm_VBoxCOM32On64" />
|
---|
415 | <?endif ?>
|
---|
416 | <?else ?>
|
---|
417 | <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
|
---|
418 | <ComponentRef Id="cp_RegisterExtensions" />
|
---|
419 | <?endif ?>
|
---|
420 | <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
|
---|
421 | <ComponentRef Id="cp_Docs" />
|
---|
422 | <?endif ?>
|
---|
423 | <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
|
---|
424 | <ComponentRef Id="cp_NLS" />
|
---|
425 | <?endif ?>
|
---|
426 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
427 | <ComponentRef Id="cp_MainCOM_x86" />
|
---|
428 | <?endif ?>
|
---|
429 | <ComponentRef Id="cp_MainCOM" />
|
---|
430 | <?if $(env.VBOX_WITH_SDS) = "yes" ?>
|
---|
431 | <ComponentRef Id="cp_VBoxSDS" />
|
---|
432 | <?endif ?>
|
---|
433 | <?if $(env.VBOX_WITH_MIDL_PROXY_STUB) = "yes" ?>
|
---|
434 | <ComponentRef Id="cp_ProxyStub" />
|
---|
435 | <ComponentRef Id="cp_ProxyStubLegacy" />
|
---|
436 | <?endif?>
|
---|
437 | <ComponentRef Id="cp_MainBinaries" />
|
---|
438 | <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
|
---|
439 | <ComponentRef Id="cp_QtPlatforms" />
|
---|
440 | <?endif ?>
|
---|
441 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
442 | <ComponentRef Id="cp_VBoxPyInst" />
|
---|
443 | <ComponentRef Id="cp_VBoxPyMod" />
|
---|
444 | <?endif ?>
|
---|
445 |
|
---|
446 | <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
|
---|
447 | <ComponentRef Id="cp_VBoxCROpenGL" />
|
---|
448 | <?endif ?>
|
---|
449 | <ComponentRef Id="cp_VBoxSDLBinaries" />
|
---|
450 | <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
|
---|
451 | <ComponentRef Id="cp_VBoxWebService" />
|
---|
452 | <?endif ?>
|
---|
453 | <ComponentRef Id="cp_VBoxCAPI" />
|
---|
454 | <?if $(env.VBOX_WITH_UNATTENDED) = "yes" ?>
|
---|
455 | <!-- unattended template component -->
|
---|
456 | <ComponentRef Id="cp_UnattendedTemplates" />
|
---|
457 | <?endif ?>
|
---|
458 | <ComponentRef Id="cp_VBoxDrv" />
|
---|
459 | <?endif ?>
|
---|
460 |
|
---|
461 | <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
|
---|
462 | Description="!(loc.VB_USBDriver)"
|
---|
463 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
464 | Absent="allow" AllowAdvertise="no" >
|
---|
465 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
466 | <MergeRef Id="msm_VBoxUSB" />
|
---|
467 | <?else ?>
|
---|
468 | <ComponentRef Id="cp_USBFilterDriver" />
|
---|
469 | <ComponentRef Id="cp_USBDeviceDriver" />
|
---|
470 | <?endif ?>
|
---|
471 | </Feature>
|
---|
472 |
|
---|
473 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
474 | <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
|
---|
475 | Description="!(loc.VB_Network)"
|
---|
476 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
477 | Absent="allow" AllowAdvertise="no" >
|
---|
478 | <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
|
---|
479 | Description="!(loc.VB_NetFltDriver)"
|
---|
480 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
481 | Absent="allow" AllowAdvertise="no" >
|
---|
482 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
483 | <MergeRef Id="msm_VBoxNetworkFlt" />
|
---|
484 | <MergeRef Id="msm_VBoxNetworkLwf" />
|
---|
485 | <?else ?>
|
---|
486 | <ComponentRef Id="cp_NetFltDriver" />
|
---|
487 | <ComponentRef Id="cp_NetLwfDriver" />
|
---|
488 | <?endif ?>
|
---|
489 | </Feature>
|
---|
490 | <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
|
---|
491 | Description="!(loc.VB_NetAdpDriver)"
|
---|
492 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
493 | Absent="allow" AllowAdvertise="no" >
|
---|
494 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
495 | <MergeRef Id="msm_VBoxNetworkAdp" />
|
---|
496 | <MergeRef Id="msm_VBoxNetworkAdp6" />
|
---|
497 | <?else ?>
|
---|
498 | <ComponentRef Id="cp_NetAdpDriver" />
|
---|
499 | <ComponentRef Id="cp_NetAdp6Driver" />
|
---|
500 | <?endif ?>
|
---|
501 | </Feature>
|
---|
502 |
|
---|
503 | </Feature>
|
---|
504 | <?endif ?>
|
---|
505 |
|
---|
506 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
507 | <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
|
---|
508 | Description="!(loc.VB_Python)"
|
---|
509 | ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
|
---|
510 | Absent="allow" AllowAdvertise="no" >
|
---|
511 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
|
---|
512 | <MergeRef Id="msm_VBoxPython" />
|
---|
513 | <?else ?>
|
---|
514 | <ComponentRef Id="cp_VBoxPythonBinding" />
|
---|
515 | <?endif ?>
|
---|
516 | </Feature>
|
---|
517 | <?endif ?>
|
---|
518 | </Feature>
|
---|
519 |
|
---|
520 | <!-- Include user interface definition -->
|
---|
521 | <?include UserInterface.wxi ?>
|
---|
522 |
|
---|
523 | <InstallExecuteSequence>
|
---|
524 |
|
---|
525 | <!--
|
---|
526 | To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
|
---|
527 |
|
---|
528 | InstallUISequence (client side) is:
|
---|
529 | AppSearch
|
---|
530 | LaunchConditions
|
---|
531 | ValidateProductID
|
---|
532 | CostInitialize
|
---|
533 | FileCost
|
---|
534 | CostFinalize
|
---|
535 | ExecuteAction -> will pass control over to "InstallExecuteSequence"
|
---|
536 |
|
---|
537 | The first six actions above will be repeated but skipped on the server
|
---|
538 | side if already run on the client side.
|
---|
539 |
|
---|
540 | InstallExecuteSequence (server side) is:
|
---|
541 | <First six action from InstallUISequence>
|
---|
542 | .
|
---|
543 | InstallInitialize
|
---|
544 | .
|
---|
545 | InstallFinalize
|
---|
546 |
|
---|
547 | The actions between InstallInitialize and InstallFinalize will be gone through twice:
|
---|
548 | - The first time the installer creates an installation script containing all actions in the right
|
---|
549 | sequence which need to get executed in a batch later. At this point the launch conditions for
|
---|
550 | custom actions must be met already!
|
---|
551 | - The second time the generated installation script will be run as-is.
|
---|
552 |
|
---|
553 | Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
|
---|
554 | need public properties (that is, UPPERCASE properties).
|
---|
555 | -->
|
---|
556 |
|
---|
557 | <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
|
---|
558 | <AppSearch Sequence="1"></AppSearch>
|
---|
559 | <LaunchConditions After="AppSearch" />
|
---|
560 |
|
---|
561 | <!-- First install the new version and then remove the old version. This is more efficient -->
|
---|
562 | <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED]]></RemoveExistingProducts>
|
---|
563 |
|
---|
564 | <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR)]]></Custom>
|
---|
565 | <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT INSTALLDIR AND EXISTINGINSTALLDIR]]></Custom>
|
---|
566 |
|
---|
567 | <!-- Check + unininstall old TAP instances - we don't need them anymore -->
|
---|
568 | <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
|
---|
569 |
|
---|
570 | <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
|
---|
571 | <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
|
---|
572 |
|
---|
573 | <!-- Uninstall branding on complete uninstall, not on update -->
|
---|
574 | <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
|
---|
575 | <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
|
---|
576 |
|
---|
577 | <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
|
---|
578 | <?include VBoxMergeAppSeq.wxi ?>
|
---|
579 | <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
|
---|
580 | <?include VBoxMergeCOM32On64Seq.wxi ?>
|
---|
581 | <?endif ?>
|
---|
582 | <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
|
---|
583 | <?include VBoxMergeNetFltSeq.wxi ?>
|
---|
584 | <?include VBoxMergeNetLwfSeq.wxi ?>
|
---|
585 | <?endif ?>
|
---|
586 | <?include VBoxMergeNetAdpSeq.wxi ?>
|
---|
587 | <?include VBoxMergeNetAdp6Seq.wxi ?>
|
---|
588 | <?include VBoxMergeUSBSeq.wxi ?>
|
---|
589 | <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
|
---|
590 | <?include VBoxMergePythonSeq.wxi ?>
|
---|
591 | <?endif ?>
|
---|
592 | <?endif ?>
|
---|
593 |
|
---|
594 | </InstallExecuteSequence>
|
---|
595 |
|
---|
596 | </Product>
|
---|
597 | </Wix>
|
---|