VirtualBox

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

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

#7571. broken desktop shortcut after repair installation was fixed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 24.7 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="$(var.Property_ProgramFiles)" Name="PFiles">
202 <Directory Id="VENDOR" Name="$(env.VBOX_VENDOR_SHORT)">
203 <Directory Id="INSTALLDIR" Name="VirtualBox">
204<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
205 <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1" />
206 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
207 <Merge Id="msm_VBoxCOM32On64" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
208 <?endif ?>
209<?else ?>
210 <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
211 <?include VBoxMergeApp.wxi ?>
212 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
213 <?include VBoxMergeCOM32On64.wxi ?>
214 <?endif ?>
215 </Directory>
216<?endif ?>
217 <Directory Id="dir_Drivers" Name="drivers">
218 <Directory Id="dir_USB" Name="USB">
219<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
220 <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
221<?else ?>
222 <Directory Id="msm_VBoxUSBFolder" FileSource=".">
223 <?include VBoxMergeUSB.wxi ?>
224 </Directory>
225<?endif ?>
226 </Directory>
227 <Directory Id="dir_Network" Name="network">
228<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
229 <Directory Id="dir_NetFlt" Name="netflt">
230 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
231 <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1" />
232 <?else ?>
233 <Directory Id="msm_VBoxNetworkFltFolder" FileSource=".">
234 <?include VBoxMergeNetFlt.wxi ?>
235 </Directory>
236 <?endif ?>
237 </Directory>
238<?endif ?>
239 <Directory Id="dir_NetAdp" Name="netadp">
240<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
241 <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1" />
242<?else ?>
243 <Directory Id="msm_VBoxNetworkAdpFolder" FileSource=".">
244 <?include VBoxMergeNetAdp.wxi ?>
245 </Directory>
246<?endif ?>
247 </Directory>
248
249<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
250 <Directory Id="dir_NetLwf" Name="netlwf">
251 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
252 <Merge Id="msm_VBoxNetworkLwf" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkLwf)" DiskId="1" />
253 <?else ?>
254 <Directory Id="msm_VBoxNetworkLwfFolder" FileSource=".">
255 <?include VBoxMergeNetLwf.wxi ?>
256 </Directory>
257 <?endif ?>
258 </Directory>
259<?endif ?>
260 <Directory Id="dir_NetAdp6" Name="netadp6">
261<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
262 <Merge Id="msm_VBoxNetworkAdp6" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp6)" DiskId="1" />
263<?else ?>
264 <Directory Id="msm_VBoxNetworkAdp6Folder" FileSource=".">
265 <?include VBoxMergeNetAdp6.wxi ?>
266 </Directory>
267<?endif ?>
268 </Directory>
269 </Directory>
270 </Directory>
271<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
272 <Directory Id="dir_SDK" Name="sdk">
273 <Directory Id="dir_SDKInstall" Name="install">
274 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
275 <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
276 <?else ?>
277 <Directory Id="msm_VBoxPythonFolder" FileSource=".">
278 <?include VBoxMergePython.wxi ?>
279 </Directory>
280 <?endif ?>
281 </Directory>
282 </Directory>
283<?endif ?>
284 <!-- Set up special directory IDs for referencing to the start menu
285 or the Quick Launch bar.
286 See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
287 http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
288 <Directory Id="ProgramMenuFolder">
289 <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
290 </Directory>
291
292 <Directory Id="DesktopFolder" Name="Desktop"/>
293
294 <Directory Id="AppDataFolder" Name="AppData">
295 <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
296 <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
297 <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
298 </Directory>
299 </Directory>
300 </Directory>
301
302 <!-- Shortcut(s) in start menu -->
303 <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
304 <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
305 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
306 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
307 Type="string" Value="installed" KeyPath="yes" />
308 <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
309 </Component>
310
311 <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
312 <Condition>VBOX_INSTALLDESKTOPSHORTCUT</Condition>
313 <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
314 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
315 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
316 Value="installed" KeyPath="yes" />
317 </Component>
318
319 <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
320 <CreateFolder/>
321 <Condition>VBOX_INSTALLQUICKLAUNCHSHORTCUT</Condition>
322 <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
323 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
324 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
325 Type="string" Value="installed" KeyPath="yes" />
326 </Component>
327 </Directory>
328 </Directory>
329 </Directory>
330 </Directory> <!-- TARGETDIR -->
331
332 <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
333 otherwise this will break manual selection using the ADDLOCAL= syntax
334 when using the command line / scripts (see VBox manual). -->
335 <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
336 Description="!(loc.VB_App)"
337 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
338 Absent="disallow" AllowAdvertise="no" >
339 <!-- Components which are handled only by this installer itself -->
340 <ComponentRef Id="cp_StartMenuVBox" />
341 <ComponentRef Id="cp_DesktopShortcut" />
342 <ComponentRef Id="cp_QuickLaunchVBox" />
343 <!-- Components handled either by the installer itself or
344 the merge module -->
345<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
346 <MergeRef Id="msm_VBoxApp" />
347 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
348 <MergeRef Id="msm_VBoxCOM32On64" />
349 <?endif ?>
350<?else ?>
351 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
352 <ComponentRef Id="cp_RegisterExtensions" />
353 <?endif ?>
354 <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
355 <ComponentRef Id="cp_Docs" />
356 <?endif ?>
357 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
358 <ComponentRef Id="cp_NLS" />
359 <?endif ?>
360 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
361 <ComponentRef Id="cp_MainCOM_x86" />
362 <?endif ?>
363 <ComponentRef Id="cp_MainCOM" />
364 <ComponentRef Id="cp_MainBinaries" />
365 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
366 <ComponentRef Id="cp_QtAccessible" />
367 <?endif ?>
368 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
369 <ComponentRef Id="cp_VBoxPyInst" />
370 <ComponentRef Id="cp_VBoxPyMod" />
371 <?endif ?>
372
373 <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
374 <ComponentRef Id="cp_VBoxCROpenGL" />
375 <?endif ?>
376 <ComponentRef Id="cp_VBoxSDLBinaries" />
377 <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
378 <ComponentRef Id="cp_VBoxWebService" />
379 <?endif ?>
380 <ComponentRef Id="cp_VBoxCAPI" />
381 <ComponentRef Id="cp_VBoxDrv" />
382<?endif ?>
383
384 <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
385 Description="!(loc.VB_USBDriver)"
386 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
387 Absent="allow" AllowAdvertise="no" >
388<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
389 <MergeRef Id="msm_VBoxUSB" />
390<?else ?>
391 <ComponentRef Id="cp_USBFilterDriver" />
392 <ComponentRef Id="cp_USBDeviceDriver" />
393<?endif ?>
394 </Feature>
395
396<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
397 <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
398 Description="!(loc.VB_Network)"
399 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
400 Absent="allow" AllowAdvertise="no" >
401 <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
402 Description="!(loc.VB_NetFltDriver)"
403 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
404 Absent="allow" AllowAdvertise="no" >
405 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
406 <MergeRef Id="msm_VBoxNetworkFlt" />
407 <?else ?>
408 <ComponentRef Id="cp_NetFltDriver" />
409 <ComponentRef Id="cp_NetLwfDriver" />
410 <?endif ?>
411 </Feature>
412 <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
413 Description="!(loc.VB_NetAdpDriver)"
414 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
415 Absent="allow" AllowAdvertise="no" >
416 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
417 <MergeRef Id="msm_VBoxNetworkAdp" />
418 <?else ?>
419 <ComponentRef Id="cp_NetAdpDriver" />
420 <ComponentRef Id="cp_NetAdp6Driver" />
421 <?endif ?>
422 </Feature>
423
424 </Feature>
425<?endif ?>
426
427<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
428 <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
429 Description="!(loc.VB_Python)"
430 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
431 Absent="allow" AllowAdvertise="no" >
432 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
433 <MergeRef Id="msm_VBoxPython" />
434 <?else ?>
435 <ComponentRef Id="cp_VBoxPythonBinding" />
436 <?endif ?>
437 </Feature>
438<?endif ?>
439 </Feature>
440
441 <!-- Include user interface definition -->
442 <?include UserInterface.wxi ?>
443
444 <InstallExecuteSequence>
445
446 <!--
447 To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
448
449 InstallUISequence (client side) is:
450 AppSearch
451 LaunchConditions
452 ValidateProductID
453 CostInitialize
454 FileCost
455 CostFinalize
456 ExecuteAction -> will pass control over to "InstallExecuteSequence"
457
458 The first six actions above will be repeated but skipped on the server
459 side if already run on the client side.
460
461 InstallExecuteSequence (server side) is:
462 <First six action from InstallUISequence>
463 .
464 InstallInitialize
465 .
466 InstallFinalize
467
468 The actions between InstallInitialize and InstallFinalize will be gone through twice:
469 - The first time the installer creates an installation script containing all actions in the right
470 sequence which need to get executed in a batch later. At this point the launch conditions for
471 custom actions must be met already!
472 - The second time the generated installation script will be run as-is.
473
474 Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
475 need public properties (that is, UPPERCASE properties).
476 -->
477
478 <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
479 <AppSearch Sequence="1"></AppSearch>
480 <LaunchConditions After="AppSearch" />
481
482 <!-- First install the new version and then remove the old version. This is more efficient -->
483 <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED]]></RemoveExistingProducts>
484
485 <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR)]]></Custom>
486 <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT INSTALLDIR AND EXISTINGINSTALLDIR]]></Custom>
487
488 <!-- Check + unininstall old TAP instances - we don't need them anymore -->
489 <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
490
491 <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
492 <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
493
494 <!-- Uninstall branding on complete uninstall, not on update -->
495 <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
496 <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
497
498<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
499 <?include VBoxMergeAppSeq.wxi ?>
500 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
501 <?include VBoxMergeCOM32On64Seq.wxi ?>
502 <?endif ?>
503 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
504 <?include VBoxMergeNetFltSeq.wxi ?>
505 <?include VBoxMergeNetLwfSeq.wxi ?>
506 <?endif ?>
507 <?include VBoxMergeNetAdpSeq.wxi ?>
508 <?include VBoxMergeNetAdp6Seq.wxi ?>
509 <?include VBoxMergeUSBSeq.wxi ?>
510 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
511 <?include VBoxMergePythonSeq.wxi ?>
512 <?endif ?>
513<?endif ?>
514
515 </InstallExecuteSequence>
516
517 </Product>
518</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