VirtualBox

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

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

pr7231. NDIS6 support has been added into the Windows installer.

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