VirtualBox

source: vbox/trunk/src/VBox/Installer/win/VirtualBox.wxs@ 58721

Last change on this file since 58721 was 58721, checked in by vboxsync, 9 years ago

bugref:8101. Windows MSM build is affected. It is passed public property NETWORKTYPE from outside into the merge modules now.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette