VirtualBox

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

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

Windows host installer: Fixed some more warnings (standard directory identifiers) which will hit us with WIX v5 at latest [build fix]. ​bugref:10644

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette