VirtualBox

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

Last change on this file since 53386 was 53156, checked in by vboxsync, 10 years ago

Installer/win: Force NDIS5 on pre-Vista hosts

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