VirtualBox

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

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

Windows host installer: Try to fix the public NETWORKTYPE property.

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

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