VirtualBox

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

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

Installer/win: Only show and handle custom action to start VirtualBox after successful installation if FE/Qt is included. Removed bogus custom actions. bugref:10201

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