VirtualBox

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

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

Windows host installer: Try to move our public properties into the include file to also have them redefined in the MSM modules, as defining those properties currently does not work when using an MSM module (follow-up for r103958).

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