VirtualBox

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

Last change on this file since 93902 was 93242, checked in by vboxsync, 3 years ago

Installer/win: Added custom action for removing old VBoxDrv service. bugref:10162

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