VirtualBox

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

Last change on this file since 64193 was 64107, checked in by vboxsync, 8 years ago

Windows host installer: Added option to disable creation of start menu entries in customization dialog. Untested.

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