VirtualBox

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

Last change on this file since 108271 was 108108, checked in by vboxsync, 3 months ago

Windows host drivers + installer: Removed _PreW10 support, as this is not supported anymore [build fix, forgot a file].

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