VirtualBox

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

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

Installer/win: Trying to fix windows 10 detection. VersionNT stops at 603 because the microsoft buggers is running the MSI installer in 8.1 compatibilitiy mode or something similarlly stupid (go figure). Renamed Properties.wxi to Defines.wix (they're preprocessor defines, not properties) and added CommonProperties.wix for stuff like the new property that indicates whether we're installing on windows 10 (VBOX_IS_WINDOW_10). bugref:8691

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