VirtualBox

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

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

Installer/win: Explicitly set the current working directory when starting VBox after a successful installation. bugref:10203

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