VirtualBox

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

Last change on this file since 69407 was 69407, checked in by vboxsync, 7 years ago

Installer/win: scm updates

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