VirtualBox

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

Last change on this file since 96313 was 96313, checked in by vboxsync, 2 years ago

src/VBox/Installer/win: comment fixes

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