VirtualBox

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

Last change on this file since 107297 was 107297, checked in by vboxsync, 5 weeks ago

Windows/Networking: Removed NDIS 5-based drivers, as we don't support Windows host OSes anymore which require this NDIS version -- only NDIS 6.0+ is supported now [build fix]. bugref:10819

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