VirtualBox

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

Last change on this file was 107383, checked in by vboxsync, 7 weeks ago

Windows host installer: Fixed MSI installer validator warnings: Removed the component "cp_VBoxSDS" and integrated it into component "cp_MainCOM", as VBoxSDS references files from "cp_MainCOM". bugref:10828

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 28.2 KB
Line 
1<!--
2 VirtualBox Windows Installation Script (WiX)
3-->
4<!--
5 Copyright (C) 2014-2024 Oracle and/or its affiliates.
6
7 This file is part of VirtualBox base platform packages, as
8 available from https://www.virtualbox.org.
9
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation, in version 3 of the
13 License.
14
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, see <https://www.gnu.org/licenses>.
22
23 SPDX-License-Identifier: GPL-3.0-only
24-->
25
26<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
27
28 <?include Defines.wxi ?>
29
30<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
31 <!-- The merge module file names -->
32 <?define Property_VBoxMergeApp = "$(env.VBOX_WIN_INST_MERGE_APP)" ?>
33 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
34 <?define Property_VBoxMergeCOM32On64 = "$(env.VBOX_WIN_INST_MERGE_COM32ON64)" ?>
35 <?endif?>
36 <?if $(env.VBOX_WITH_USB) = "yes" ?>
37 <?define Property_VBoxMergeUSB = "$(env.VBOX_WIN_INST_MERGE_USB)" ?>
38 <?endif?>
39 <?if $(env.VBOX_WITH_NETADP) = "yes" ?>
40 <?define Property_VBoxMergeNetworkAdp6 = "$(env.VBOX_WIN_INST_MERGE_NETADP6)" ?>
41 <?endif?>
42 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
43 <?define Property_VBoxMergeNetworkLwf = "$(env.VBOX_WIN_INST_MERGE_NETLWF)" ?>
44 <?endif?>
45 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
46 <?define Property_VBoxMergePython = "$(env.VBOX_WIN_INST_MERGE_PYTHON)" ?>
47 <?endif?>
48<?endif?>
49
50 <Package UpgradeCode="C4BAD770-BFE8-4D2C-A592-693028A7215B" Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
51 Language="!(loc.LANG)" Version="$(var.Property_Version)" Manufacturer="$(env.VBOX_VENDOR)"
52 InstallerVersion="$(var.VBoxProperty_MsiInstallerVersion)">
53
54 <SummaryInformation Keywords="Installer"
55 Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package" Manufacturer="$(env.VBOX_VENDOR)" />
56
57 <?include CommonProperties.wxi ?>
58
59 <!-- @todo indentation is wrong here and it goes on to about line 525. -->
60 <!-- Global properties -->
61 <Property Id="ARPPRODUCTICON" Value="IconVirtualBox" />
62 <Property Id="ARPURLINFOABOUT" Value="http://www.virtualbox.org" />
63 <Property Id="ARPURLUPDATEINFO" Value="http://www.virtualbox.org" />
64
65 <Property Id="NETWORKTYPE" Value="NDIS6" Secure="yes" />
66
67 <!-- Whether or not registering of file extensions handled by FE/Qt should be performed -->
68 <Property Id="VBOX_REGISTERFILEEXTENSIONS" Value="1" Secure="yes" />
69
70 <SetProperty Id="VBOX_REGISTERFILEEXTENSIONS" After="AppSearch" Sequence="both" Value="{}" Condition="VBOX_REGISTERFILEEXTENSIONS=&quot;0&quot;" />
71
72 <?include PublicProperties.wxi ?>
73
74 <!-- Make doubly sure we're on 64-bit windows NT.
75 Note! This is normally checked by -->
76 <Launch Condition="VersionNT64" Message="!(loc.Only64Bit)" />
77
78 <Launch Condition="Privileged" Message="!(loc.NeedAdmin)" />
79
80<?if $(env.VBOX_WITH_CRT_PACKING) = "no" ?>
81 <!-- Check if we have the required MS CRT(s) installed when we're not shipping those. -->
82 <Launch Condition="Installed OR (VBOX_MSCRT_INSTALLED)" Message="!(loc.NeedMSCRT)" />
83<?endif?>
84 <!-- Check if the current INSTALLDIR is valid or not, or if VBox already is installed.
85 Thight might be handed-in via command line (MSI properties) or through a customized merge module. See @bugref{10616} -->
86 <Launch Condition="Installed OR (VBox_Target_Dir_Is_Valid=&quot;1&quot;)" Message="!(loc.InvalidTargetDir)" />
87
88 <!-- Detect old innotek installation -->
89 <!-- Force a manual uninstall of an already installed innotek VirtualBox version first -->
90 <Property Id="VBOXINNOTEK">
91 <RegistrySearch Id="RegSearchInnotekVersion" Root="HKLM" Key="SOFTWARE\Innotek\VirtualBox" Name="Version" Type="raw" Bitness="$(var.Property_Bitness)" />
92 </Property>
93 <Launch Condition="NOT VBOXINNOTEK" Message="!(loc.InnotekFound)" />
94
95
96 <!-- *************************** Upgrade packages only ******************************* -->
97 <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
98 IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
99 (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
100 IncludeMaximum = no only finds those below the Maximum).
101 OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
102 only change files in the package -->
103
104 <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
105
106 <!-- Detect if the same version (as this version) of VirtualBox already is installed.
107 Useful for debugging / testboxes -->
108 <UpgradeVersion Property="SAMEVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="yes"
109 Maximum="$(var.Property_Version)" IncludeMaximum="yes"
110 OnlyDetect="yes" />
111
112 <!-- Detect if a newer version (than this version) of VirtualBox already is installed.
113 @todo Should make a dialog appear asking user to confirm downgrade -->
114 <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no"
115 Maximum="9.9.99" IncludeMaximum="yes"
116 OnlyDetect="yes" />
117
118 <!-- Detect if an older version (than this version) of VirtualBox already is installed. -->
119 <UpgradeVersion Property="PREVIOUSVERSIONDETECTED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="no" />
120
121 </Upgrade>
122
123 <!-- The product's icon table -->
124 <Icon Id="IconVirtualBox" SourceFile="$(env.VBOX_WINDOWS_ICON_FILE)" />
125
126 <!-- The media/binary IDs -->
127 <!--
128 The effects of CompressionLevel options:
129 default/mszip, high: 32.54s
130 -rw-rw-rw- 1 bird 0 53 591 221 2016-09-25 03:56 common.cab
131 -rw-rw-rw- 1 bird 0 41 560 082 2016-09-25 03:56 VirtualBox-5.1.51-r110887_en_US.msi
132 high, high: 46.76s
133 -rw-rw-rw- 1 bird 0 53 591 221 2016-09-25 03:49 common.cab
134 -rw-rw-rw- 1 bird 0 34 056 210 2016-09-25 03:49 VirtualBox-5.1.51-r110887_en_US.msi
135 medium, medium: 29.95s
136 -rw-rw-rw- 1 bird 0 56 293 089 2016-09-25 03:53 common.cab
137 -rw-rw-rw- 1 bird 0 35 498 002 2016-09-25 03:54 VirtualBox-5.1.51-r110887_en_US.msi
138 low, low: 25.41s
139 -rw-rw-rw- 1 bird 0 57 616 155 2016-09-25 03:52 common.cab
140 -rw-rw-rw- 1 bird 0 37 181 458 2016-09-25 03:52 VirtualBox-5.1.51-r110887_en_US.msi
141 mszip/default, mszip/default: 16.13s
142 -rw-rw-rw- 1 bird 0 58 751 954 2016-09-25 03:49 common.cab
143 -rw-rw-rw- 1 bird 0 41 560 082 2016-09-25 03:50 VirtualBox-5.1.51-r110887_en_US.msi
144 none, none: 2.37s
145 -rw-rw-rw- 1 bird 0 92 470 301 2016-09-25 03:47 common.cab
146 -rw-rw-rw- 1 bird 0 135 874 578 2016-09-25 03:47 VirtualBox-5.1.51-r110887_en_US.msi
147
148 We use the -defaultcompressionlevel command line option to control this.
149 -->
150 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
151<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
152 <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
153 <Media Id="2" Cabinet="common.cab" EmbedCab="no" />
154 <?endif?>
155<?endif?>
156 <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
157
158 <!-- Custom actions -->
159
160 <!-- Figure out where a previous installation was, if any -->
161<?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
162 <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
163
164 <Property Id="EXISTINGINSTALLDIR" Secure="yes">
165 <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Bitness="$(var.Property_Bitness)" />
166 </Property>
167 <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
168<?else?>
169 <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
170
171 <Property Id="EXISTINGINSTALLDIR" Secure="yes">
172 <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Bitness="$(var.Property_Bitness)" />
173 </Property>
174 <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
175<?endif?>
176 <CustomAction Id="ca_UninstallTAPInstances" DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no" BinaryRef="VBoxInstallHelper" />
177
178 <CustomAction Id="ca_UninstallVBoxDrv" DllEntry="UninstallVBoxDrv" Execute="deferred" Return="ignore" Impersonate="no" BinaryRef="VBoxInstallHelper" />
179
180 <Property Id="VBOXDEPENDENCY" Secure="yes">
181 <DirectorySearch Id="VBoxInstallDir" Path="[EXISTINGINSTALLDIR]">
182 <FileSearch Name="dependency.dep" />
183 </DirectorySearch>
184 </Property>
185
186<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
187 <Property Id="EXISTING_PYTHON_API_FOLDER" Secure="yes">
188 <RegistrySearch Id="RegistryGetPythonApiInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="PythonApiInstallDir" Type="raw" Bitness="$(var.Property_Bitness)" />
189 </Property>
190<?endif?>
191
192 <!--
193 install upgrade uninstall
194 VBOXDEPENDENCY 0 1/0 1/0
195 UPGRADINGPRODUCTCODE 0 1 0
196 final 0 1 0
197 not final 1 0 1
198 -->
199
200 <Launch Condition="NOT (VBOXDEPENDENCY AND UPGRADINGPRODUCTCODE)" Message="!(loc.UsedByOtherApp)" />
201
202 <!-- Detect old Sun installation -->
203 <!-- Force a manual uninstall of an already installed Sun VirtualBox version first -->
204 <!--<Property Id="VBOXSUN">
205 <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Bitness="$(var.Property_Bitness)"/>
206 </Property>
207 <Condition Message="!(loc.SunFound)">
208 NOT VBOXSUN
209 </Condition>-->
210
211 <!-- Note: Only if we include FE/Qt, we offer to start VirtualBox at the end of a successful installation. -->
212<?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
213 <!-- Note: Make sure to set the CWD (via 'Directory' attribute) to not run off a possibly temporary directory or some such (see @bugref{10203}). -->
214 <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand="[INSTALLDIR]VirtualBox.exe" Return="asyncNoWait" Impersonate="yes" />
215<?endif?>
216
217 <CustomAction Id="ca_CheckSerial" DllEntry="CheckSerial" Impersonate="no" BinaryRef="VBoxInstallHelper" />
218
219 <CustomAction Id="ca_InstallBranding" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no" BinaryRef="VBoxInstallHelper" />
220 <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate" />
221
222 <CustomAction Id="ca_UninstallBranding" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no" BinaryRef="VBoxInstallHelper" />
223 <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate" />
224
225 <?include VBoxMergeAppCA.wxi ?>
226<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
227 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
228 <?include VBoxMergeCOM32On64CA.wxi ?>
229 <?endif?>
230 <?if $(env.VBOX_WITH_NETADP) = "yes" ?>
231 <?include VBoxMergeNetLwfCA.wxi ?>
232 <?include VBoxMergeNetAdp6CA.wxi ?>
233 <?endif?>
234 <?include VBoxMergeUSBCA.wxi ?>
235 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
236 <?include VBoxMergePythonCA.wxi ?>
237 <?endif?>
238<?endif?>
239
240 <!-- TARGETDIR -->
241
242 <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
243 otherwise this will break manual selection using the ADDLOCAL= syntax
244 when using the command line / scripts (see VBox manual). -->
245 <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1" Description="!(loc.VB_App)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no" AllowAbsent="no">
246
247<?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
248 <!-- Components which are handled only by this installer itself -->
249 <ComponentRef Id="cp_StartMenuVBox" />
250 <ComponentRef Id="cp_DesktopShortcut" />
251<?endif?>
252 <!-- Components for removing empty folders after cleaning traces -->
253 <ComponentRef Id="cp_INSTALLDIR" />
254 <ComponentRef Id="cp_SDK" />
255
256 <!-- Components handled either by the installer itself or
257 the merge module -->
258<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
259 <MergeRef Id="msm_VBoxApp" />
260 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
261 <MergeRef Id="msm_VBoxCOM32On64" />
262 <?endif?>
263<?else?>
264 <!-- Make sure to reference the permissions component, which takes care of setting
265 the required ACLs for our files / folders. -->
266 <ComponentRef Id="cp_Permissions" />
267 <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
268 <ComponentRef Id="cp_Docs" />
269 <?endif?>
270 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
271 <ComponentRef Id="cp_NLS" />
272 <?endif?>
273 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
274 <ComponentRef Id="cp_MainCOM_x86" />
275 <?endif?>
276 <ComponentRef Id="cp_MainCOM" />
277 <?if $(env.VBOX_WITH_MIDL_PROXY_STUB) = "yes" ?>
278 <ComponentRef Id="cp_ProxyStub" />
279 <?endif?>
280 <?if $(env.VBOX_WITH_DTRACE) = "yes" ?>
281 <ComponentRef Id="cp_dir_DTrace_lib_arch" />
282 <ComponentRef Id="cp_dir_DTrace_testcase_arch" />
283 <?endif?>
284 <?if $(env.VBOX_WITH_UNATTENDED_TEMPLATES) = "yes" ?>
285 <ComponentRef Id="cp_UnattendedTemplates" />
286 <?endif?>
287 <ComponentRef Id="cp_MainBinaries" />
288 <?if $(env.VBOX_WITH_QTGUI) = "yes" and $(env.VBOX_WITH_ORACLE_QT) = "yes" ?>
289 <ComponentRef Id="cp_QtPlatforms" />
290 <ComponentRef Id="cp_QtSqldrivers" />
291 <ComponentRef Id="cp_QtStyles" />
292 <?endif?>
293 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
294 <ComponentRef Id="cp_VBoxPyInst" />
295 <ComponentRef Id="cp_VBoxPySetup" />
296 <ComponentRef Id="cp_VBoxPyMod" />
297 <ComponentRef Id="cp_VBoxPyDel" />
298 <?endif?>
299 <?if $(env.VBOX_WITH_VBOXSDL) = "yes" ?>
300 <ComponentRef Id="cp_VBoxSDLBinaries" />
301 <?endif?>
302 <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
303 <ComponentRef Id="cp_VBoxWebService" />
304 <?endif?>
305 <ComponentRef Id="cp_VBoxCAPI" />
306 <?if $(env.VBOX_SIGNING_MODE) != none ?>
307 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
308 <ComponentRef Id="cp_VBoxSupCat_PreW10" />
309 <?endif?>
310 <ComponentRef Id="cp_VBoxSupCat_W10" />
311 <?endif?>
312 <ComponentRef Id="cp_VBoxSup" />
313<?endif?>
314
315<?if $(env.VBOX_WITH_USB) = "yes" ?>
316 <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1" Description="!(loc.VB_USBDriver)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no">
317 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
318 <MergeRef Id="msm_VBoxUSB" />
319 <?else?>
320 <?if $(env.VBOX_SIGNING_MODE) != none ?>
321 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
322 <ComponentRef Id="cp_USBFilterDriverCat_PreW10" />
323 <?endif?>
324 <ComponentRef Id="cp_USBFilterDriverCat_W10" />
325 <?endif?>
326 <ComponentRef Id="cp_USBFilterDriver" />
327 <?if $(env.VBOX_SIGNING_MODE) != none ?>
328 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
329 <ComponentRef Id="cp_USBDeviceDriverCat_PreW10" />
330 <?endif?>
331 <ComponentRef Id="cp_USBDeviceDriverCat_W10" />
332 <?endif?>
333 <ComponentRef Id="cp_USBDeviceDriver" />
334 <?endif?>
335 </Feature>
336<?endif?>
337
338<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
339 <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1" Description="!(loc.VB_Network)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no">
340 <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1" Description="!(loc.VB_NetLwfDriver)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no">
341 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
342 <MergeRef Id="msm_VBoxNetworkLwf" />
343 <?else?>
344 <?if $(env.VBOX_SIGNING_MODE) != none ?>
345 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
346 <ComponentRef Id="cp_NetLwfDriverCat_PreW10" />
347 <?endif?>
348 <ComponentRef Id="cp_NetLwfDriverCat_W10" />
349 <?endif?>
350 <ComponentRef Id="cp_NetLwfDriver" />
351 <?endif?>
352 </Feature>
353 <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1" Description="!(loc.VB_NetAdp6Driver)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no">
354 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
355 <MergeRef Id="msm_VBoxNetworkAdp6" />
356 <?else?>
357 <?if $(env.VBOX_SIGNING_MODE) != none ?>
358 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
359 <ComponentRef Id="cp_NetAdp6DriverCat_PreW10" />
360 <?endif?>
361 <ComponentRef Id="cp_NetAdp6DriverCat_W10" />
362 <?endif?>
363 <ComponentRef Id="cp_NetAdp6Driver" />
364 <?endif?>
365 </Feature>
366
367 </Feature>
368<?endif?>
369
370<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
371 <Feature Id="VBoxPython" Title="VirtualBox Python Support" Level="1" Description="!(loc.VB_Python)" ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand" AllowAdvertise="no">
372 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
373 <MergeRef Id="msm_VBoxPython" />
374 <?else?>
375 <ComponentRef Id="cp_VBoxPythonBinding" />
376 <?endif?>
377 </Feature>
378<?endif?>
379 </Feature>
380
381 <!-- Include user interface definition -->
382 <?include UserInterface.wxi ?>
383
384 <InstallExecuteSequence>
385
386 <!--
387 To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
388
389 InstallUISequence (client side) is:
390 AppSearch
391 LaunchConditions
392 ValidateProductID
393 CostInitialize
394 FileCost
395 CostFinalize
396 ExecuteAction -> will pass control over to "InstallExecuteSequence"
397
398 The first six actions above will be repeated but skipped on the server
399 side if already run on the client side.
400
401 InstallExecuteSequence (server side) is:
402 <First six action from InstallUISequence>
403 .
404 InstallInitialize
405 .
406 InstallFinalize
407
408 The actions between InstallInitialize and InstallFinalize will be gone through twice:
409 - The first time the installer creates an installation script containing all actions in the right
410 sequence which need to get executed in a batch later. At this point the launch conditions for
411 custom actions must be met already!
412 - The second time the generated installation script will be run as-is.
413
414 Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
415 need public properties (that is, UPPERCASE properties).
416 -->
417
418 <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
419 <AppSearch Sequence="1"></AppSearch>
420 <LaunchConditions After="AppSearch" />
421
422 <!-- First install the new version and then remove the old version. This is more efficient -->
423 <RemoveExistingProducts After="InstallValidate" Condition="PREVIOUSVERSIONDETECTED OR NEWERVERSIONDETECTED" />
424
425 <Custom Action="ca_OriginalTargetDir" After="FileCost" Condition="(NOT INSTALLDIR)" />
426 <Custom Action="ca_DefaultTargetDir" Before="FileCost" Condition="NOT INSTALLDIR AND EXISTINGINSTALLDIR" />
427
428 <!-- Check + unininstall old TAP instances - we don't need them anymore -->
429 <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" Condition="1" />
430
431 <!-- Check + uninstall old VBoxDrv service - it was renamed to VBoxSup. -->
432 <Custom Action="ca_UninstallVBoxDrv" Before="InstallFiles" Condition="1" />
433
434 <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" Condition="NOT REMOVE" />
435 <Custom Action="ca_InstallBranding" Before="InstallFinalize" Condition="NOT REMOVE" />
436
437 <!-- Uninstall branding on complete uninstall, not on update -->
438 <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" Condition="(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;)" />
439 <Custom Action="ca_UninstallBranding" Before="InstallFinalize" Condition="(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;)" />
440
441<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
442 <?include VBoxMergeAppSeq.wxi ?>
443 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
444 <?include VBoxMergeCOM32On64Seq.wxi ?>
445 <?endif?>
446 <?if $(env.VBOX_WITH_NETADP) = "yes" ?>
447 <?include VBoxMergeNetLwfSeq.wxi ?>
448 <?include VBoxMergeNetAdp6Seq.wxi ?>
449 <?endif?>
450 <?include VBoxMergeUSBSeq.wxi ?>
451 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
452 <?include VBoxMergePythonSeq.wxi ?>
453 <?endif?>
454<?endif?>
455
456 </InstallExecuteSequence>
457
458 <Directory Id="$(var.Property_ProgramFiles)" Name="PFiles">
459 <Directory Id="VENDOR" Name="$(env.VBOX_VENDOR_SHORT)">
460 <Directory Id="INSTALLDIR" Name="VirtualBox">
461 <!-- Components for removing empty folder after cleaning traces -->
462 <Component Id="cp_INSTALLDIR" Guid="374723AF-5990-4552-A1B0-82C72EFA360F">
463 <RemoveFolder Id="INSTALLDIR" On="uninstall" />
464 </Component>
465<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
466 <Merge Id="msm_VBoxApp" Language="0" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1">
467 <ConfigurationData Name="argRegisterExtensions" Value="[VBOX_REGISTERFILEEXTENSIONS]" />
468 </Merge>
469 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
470 <Merge Id="msm_VBoxCOM32On64" Language="0" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
471 <?endif?>
472<?else?>
473 <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
474 <?include VBoxMergeApp.wxi ?>
475 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
476 <?include VBoxMergeCOM32On64.wxi ?>
477 <?endif?>
478 </Directory>
479<?endif?>
480 <Directory Id="dir_Drivers" Name="drivers">
481<?if $(env.VBOX_WITH_USB) = "yes" ?>
482 <Directory Id="dir_USB" Name="USB">
483 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
484 <Merge Id="msm_VBoxUSB" Language="0" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
485 <?else?>
486 <Directory Id="msm_VBoxUSBFolder" FileSource=".">
487 <?include VBoxMergeUSB.wxi ?>
488 </Directory>
489 <?endif?>
490 </Directory>
491<?endif?>
492 <Directory Id="dir_Network" Name="network">
493<?if $(env.VBOX_WITH_NETADP) = "yes" ?>
494 <Directory Id="dir_NetLwf" Name="netlwf">
495 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
496 <Merge Id="msm_VBoxNetworkLwf" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkLwf)" DiskId="1">
497 <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]" />
498 </Merge>
499 <?else?>
500 <Directory Id="msm_VBoxNetworkLwfFolder" FileSource=".">
501 <?include VBoxMergeNetLwf.wxi ?>
502 </Directory>
503 <?endif?>
504 </Directory>
505<?endif?>
506<?if $(env.VBOX_WITH_NETADP) = "yes" ?>
507 <Directory Id="dir_NetAdp6" Name="netadp6">
508 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
509 <Merge Id="msm_VBoxNetworkAdp6" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp6)" DiskId="1">
510 <ConfigurationData Name="passedNetworkType" Value="[NETWORKTYPE]" />
511 </Merge>
512 <?else?>
513 <Directory Id="msm_VBoxNetworkAdp6Folder" FileSource=".">
514 <?include VBoxMergeNetAdp6.wxi ?>
515 </Directory>
516 <?endif?>
517 </Directory>
518<?endif?>
519 </Directory>
520 </Directory>
521 <Directory Id="dir_SDK" Name="sdk">
522<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
523 <Directory Id="dir_SDKInstaller" Name="installer"> <!-- Note: For < VBox 7.1 this folder was called 'install'. -->
524 <Directory Id="dir_SDKInstallerPython" Name="python">
525 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
526 <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
527 <?else?>
528 <Directory Id="msm_VBoxPythonFolder" FileSource=".">
529 <?include VBoxMergePython.wxi ?>
530 </Directory>
531 <?endif?>
532 </Directory>
533 </Directory>
534<?endif?>
535 <!-- Component for removing empty folder after cleaning traces -->
536 <Component Id="cp_SDK" Guid="ACA59290-B2D6-4E96-B164-C45F70A90219">
537 <RemoveFolder Id="dir_SDK" On="uninstall" />
538 </Component>
539 </Directory>
540
541 </Directory> <!-- INSTALLDIR -->
542 </Directory> <!-- $(env.VBOX_VENDOR_SHORT) -->
543 </Directory> <!-- Program Files -->
544
545<?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
546 <!-- Start menu entries -->
547 <Directory Id="ProgramMenuFolder">
548 <Directory Id="StartMenuFolder">
549 <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)">
550 <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Condition="VBOX_INSTALLSTARTMENUENTRIES" Bitness="$(var.Property_Bitness)">
551 <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)" Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR" />
552 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string" Value="installed" KeyPath="yes" />
553 <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
554 <RemoveFolder Id="rmf_ShortcutStartMenu" On="uninstall" />
555 </Component>
556 </Directory>
557 </Directory>
558 </Directory>
559
560 <!-- Desktop shortcut -->
561 <Directory Id="DesktopFolder" Name="Desktop">
562 <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Condition="VBOX_INSTALLDESKTOPSHORTCUT" Bitness="$(var.Property_Bitness)">
563 <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)" Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR" />
564 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string" Value="installed" KeyPath="yes" />
565 <RemoveFolder Id="rmf_ShortcutDesktop" On="uninstall" />
566 </Component>
567 </Directory>
568<?endif?> <!-- $(env.VBOX_WITH_QTGUI) = "yes" -->
569
570</Package>
571</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