VirtualBox

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

Last change on this file since 103038 was 103038, checked in by vboxsync, 4 months ago

Main/Python: Windows installer fixes. ​bugref:10579

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

© 2023 Oracle
ContactPrivacy policyTerms of Use