VirtualBox

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

Last change on this file since 86649 was 84945, checked in by vboxsync, 4 years ago

Installer/win,GA/NT/Installer: Stop using obsolete kBuild variable names.

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