VirtualBox

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

Last change on this file since 52827 was 52827, checked in by vboxsync, 10 years ago

Windows installer: small refinement of installer script

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.7 KB
Line 
1<?xml version='1.0' encoding='windows-1252'?>
2<!--
3 VirtualBox Windows Installation Script (WiX)
4
5 Copyright (C) 2014 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14-->
15
16<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
17 xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
18
19 <?include Properties.wxi ?>
20
21<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
22 <!-- The merge module file names -->
23 <?define Property_VBoxMergeApp = "$(env.VBOX_WIN_INST_MERGE_APP)" ?>
24 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
25 <?define Property_VBoxMergeCOM32On64 = "$(env.VBOX_WIN_INST_MERGE_COM32ON64)" ?>
26 <?endif ?>
27 <?define Property_VBoxMergeUSB = "$(env.VBOX_WIN_INST_MERGE_USB)" ?>
28 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
29 <?define Property_VBoxMergeNetworkFlt = "$(env.VBOX_WIN_INST_MERGE_NETFLT)" ?>
30 <?endif ?>
31 <?define Property_VBoxMergeNetworkAdp = "$(env.VBOX_WIN_INST_MERGE_NETADP)" ?>
32 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
33 <?define Property_VBoxMergePython = "$(env.VBOX_WIN_INST_MERGE_PYTHON)" ?>
34 <?endif ?>
35<?endif ?>
36
37 <Product Id="*"
38 UpgradeCode="C4BAD770-BFE8-4D2C-A592-693028A7215B"
39 Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
40 Language="!(loc.LANG)"
41 Codepage="1252"
42 Version="$(var.Property_Version)"
43 Manufacturer="$(env.VBOX_VENDOR)">
44
45 <Package Id="*"
46 Keywords="Installer"
47 Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
48 Comments="$(env.VBOX_PRODUCT) installation package"
49 Compressed="yes"
50 Manufacturer="$(env.VBOX_VENDOR)"
51 InstallerVersion="200"
52 InstallPrivileges="elevated"
53 Platform="$(var.Property_Platform)"/>
54
55 <!-- Global properties -->
56 <Property Id="ARPPRODUCTICON">IconVirtualBox</Property>
57 <Property Id="ARPURLINFOABOUT">http://www.virtualbox.org</Property>
58 <Property Id="ARPURLUPDATEINFO">http://www.virtualbox.org</Property>
59
60 <!-- Install the product for all users on the system -->
61 <Property Id="ALLUSERS"><![CDATA[1]]></Property>
62
63 <!-- Force overwriting all files and re-create shortcuts to guarantee a working environment -->
64 <Property Id='REINSTALLMODE' Value='amus'/>
65
66 <!-- VirtualBox properties -->
67 <Property Id="VBOX_INSTALLDESKTOPSHORTCUT" Value="1" />
68 <Property Id="VBOX_INSTALLQUICKLAUNCHSHORTCUT" Value="1" />
69 <Property Id="VBOX_REGISTERFILEEXTENSIONS" Value="1" />
70 <Property Id="VBOX_STARTVBOX" Value="1" />
71
72 <!-- Make sure installation will not start on anything other but the NT family -->
73<?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
74 <Condition Message="!(loc.Only64Bit)">
75 VersionNT64
76 </Condition>
77<?else ?>
78 <Condition Message="!(loc.Only32Bit)">
79 NOT VersionNT64
80 </Condition>
81
82 <Condition Message="!(loc.WrongOS)">
83 NOT VersionNT=500 AND NOT Version9X AND NOT VersionNT64
84 </Condition>
85
86<?endif ?>
87
88 <Condition Message="!(loc.NeedAdmin)">
89 Privileged
90 </Condition>
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" Win64="$(var.Property_Win64)"/>
96 </Property>
97 <Condition Message="!(loc.InnotekFound)">
98 NOT VBOXINNOTEK
99 </Condition>
100
101 <!-- *************************** Upgrade packages only ******************************* -->
102 <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
103 IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
104 (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
105 IncludeMaximum = no only finds those below the Maximum).
106 OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
107 only change files in the package -->
108
109 <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
110
111 <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
112 <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
113 <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no" OnlyDetect="no" />
114
115 <!-- Flag is set if the install will trigger an upgrade of an existing install -->
116 <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
117
118 </Upgrade>
119
120 <!-- The product's icon table -->
121 <Icon Id="IconVirtualBox" SourceFile="$(env.VBOX_WINDOWS_ICON_FILE)" />
122
123 <!-- The media/binary IDs -->
124 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
125<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
126 <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?>
127 <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="high" />
128 <?endif ?>
129<?endif ?>
130 <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
131
132 <!-- Custom actions -->
133
134 <!-- Figure out where a previous installation was, if any -->
135<?if $(env.BUILD_TARGET_ARCH) = "amd64" ?>
136 <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
137 Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
138
139 <Property Id="EXISTINGINSTALLDIR" Secure="yes">
140 <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
141 Type="raw" Win64="$(var.Property_Win64)"/>
142 </Property>
143 <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
144<?else ?>
145 <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
146 Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
147
148 <Property Id="EXISTINGINSTALLDIR" Secure="yes">
149 <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
150 Type="raw" Win64="$(var.Property_Win64)"/>
151 </Property>
152 <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
153<?endif ?>
154 <CustomAction Id="ca_UninstallTAPInstances" BinaryKey="VBoxInstallHelper"
155 DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no"/>
156
157 <!-- Detect old Sun installation -->
158 <!-- Force a manual uninstall of an already installed Sun VirtualBox version first -->
159 <!--<Property Id="VBOXSUN">
160 <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
161 </Property>
162 <Condition Message="!(loc.SunFound)">
163 NOT VBOXSUN
164 </Condition>-->
165
166 <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand="[INSTALLDIR]\VirtualBox.exe" Return="asyncNoWait" Impersonate="yes" />
167 <CustomAction Id="ca_CheckSerial" BinaryKey="VBoxInstallHelper" DllEntry="CheckSerial" Impersonate="no"/>
168
169 <CustomAction Id="ca_InstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
170 <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
171
172 <CustomAction Id="ca_UninstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
173 <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
174<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
175 <?include VBoxMergeAppCA.wxi ?>
176 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
177 <?include VBoxMergeCOM32On64CA.wxi ?>
178 <?endif ?>
179 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
180 <?include VBoxMergeNetFltCA.wxi ?>
181 <?endif ?>
182 <?include VBoxMergeNetAdpCA.wxi ?>
183 <?include VBoxMergeUSBCA.wxi ?>
184 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
185 <?include VBoxMergePythonCA.wxi ?>
186 <?endif ?>
187<?endif ?>
188
189 <Directory Id="TARGETDIR" Name="SourceDir">
190 <Directory Id="INSTALLDIR">
191<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
192 <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1" />
193 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
194 <Merge Id="msm_VBoxCOM32On64" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
195 <?endif ?>
196<?else ?>
197 <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
198 <?include VBoxMergeApp.wxi ?>
199 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
200 <?include VBoxMergeCOM32On64.wxi ?>
201 <?endif ?>
202 </Directory>
203<?endif ?>
204 <Directory Id="dir_Drivers" Name="drivers">
205 <Directory Id="dir_USB" Name="USB">
206<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
207 <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
208<?else ?>
209 <Directory Id="msm_VBoxUSBFolder" FileSource=".">
210 <?include VBoxMergeUSB.wxi ?>
211 </Directory>
212<?endif ?>
213 </Directory>
214 <Directory Id="dir_Network" Name="network">
215<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
216 <Directory Id="dir_NetFlt" Name="netflt">
217 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
218 <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1" />
219 <?else ?>
220 <Directory Id="msm_VBoxNetworkFltFolder" FileSource=".">
221 <?include VBoxMergeNetFlt.wxi ?>
222 </Directory>
223 <?endif ?>
224 </Directory>
225<?endif ?>
226 <Directory Id="dir_NetAdp" Name="netadp">
227<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
228 <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1" />
229<?else ?>
230 <Directory Id="msm_VBoxNetworkAdpFolder" FileSource=".">
231 <?include VBoxMergeNetAdp.wxi ?>
232 </Directory>
233<?endif ?>
234 </Directory>
235 </Directory>
236 </Directory>
237<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
238 <Directory Id="dir_SDK" Name="sdk">
239 <Directory Id="dir_SDKInstall" Name="install">
240 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
241 <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
242 <?else ?>
243 <Directory Id="msm_VBoxPythonFolder" FileSource=".">
244 <?include VBoxMergePython.wxi ?>
245 </Directory>
246 <?endif ?>
247 </Directory>
248 </Directory>
249<?endif ?>
250 <!-- Set up special directory IDs for referencing to the start menu
251 or the Quick Launch bar.
252 See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
253 http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
254 <Directory Id="ProgramMenuFolder">
255 <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
256 </Directory>
257
258 <Directory Id="DesktopFolder" Name="Desktop"/>
259
260 <Directory Id="AppDataFolder" Name="AppData">
261 <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
262 <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
263 <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
264 </Directory>
265 </Directory>
266 </Directory>
267
268 <!-- Shortcut(s) in start menu -->
269 <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
270 <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
271 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
272 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
273 Type="string" Value="installed" KeyPath="yes" />
274 <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
275 </Component>
276
277 <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
278 <Condition>VBOX_INSTALLDESKTOPSHORTCUT</Condition>
279 <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
280 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
281 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
282 Value="installed" KeyPath="yes" />
283 </Component>
284
285 <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
286 <CreateFolder/>
287 <Condition>VBOX_INSTALLQUICKLAUNCHSHORTCUT</Condition>
288 <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
289 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
290 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
291 Type="string" Value="installed" KeyPath="yes" />
292 </Component>
293
294 </Directory>
295 </Directory> <!-- TARGETDIR -->
296
297 <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
298 otherwise this will break manual selection using the ADDLOCAL= syntax
299 when using the command line / scripts (see VBox manual). -->
300 <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
301 Description="!(loc.VB_App)"
302 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
303 Absent="disallow" AllowAdvertise="no" >
304 <!-- Components which are handled only by this installer itself -->
305 <ComponentRef Id="cp_StartMenuVBox" />
306 <ComponentRef Id="cp_DesktopShortcut" />
307 <ComponentRef Id="cp_QuickLaunchVBox" />
308 <!-- Components handled either by the installer itself or
309 the merge module -->
310<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
311 <MergeRef Id="msm_VBoxApp" />
312 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
313 <MergeRef Id="msm_VBoxCOM32On64" />
314 <?endif ?>
315<?else ?>
316 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
317 <ComponentRef Id="cp_RegisterExtensions" />
318 <?endif ?>
319 <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
320 <ComponentRef Id="cp_Docs" />
321 <?endif ?>
322 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
323 <ComponentRef Id="cp_NLS" />
324 <?endif ?>
325 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
326 <ComponentRef Id="cp_MainCOM_x86" />
327 <?endif ?>
328 <ComponentRef Id="cp_MainCOM" />
329 <ComponentRef Id="cp_MainBinaries" />
330 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
331 <ComponentRef Id="cp_QtAccessible" />
332 <?endif ?>
333 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
334 <ComponentRef Id="cp_VBoxPyInst" />
335 <ComponentRef Id="cp_VBoxPyMod" />
336 <?endif ?>
337
338 <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
339 <ComponentRef Id="cp_VBoxCROpenGL" />
340 <?endif ?>
341 <ComponentRef Id="cp_VBoxSDLBinaries" />
342 <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
343 <ComponentRef Id="cp_VBoxWebService" />
344 <?endif ?>
345 <ComponentRef Id="cp_VBoxCAPI" />
346 <ComponentRef Id="cp_VBoxDrv" />
347<?endif ?>
348
349 <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
350 Description="!(loc.VB_USBDriver)"
351 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
352 Absent="allow" AllowAdvertise="no" >
353<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
354 <MergeRef Id="msm_VBoxUSB" />
355<?else ?>
356 <ComponentRef Id="cp_USBFilterDriver" />
357 <ComponentRef Id="cp_USBDeviceDriver" />
358<?endif ?>
359 </Feature>
360
361<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
362 <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
363 Description="!(loc.VB_Network)"
364 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
365 Absent="allow" AllowAdvertise="no" >
366 <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
367 Description="!(loc.VB_NetFltDriver)"
368 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
369 Absent="allow" AllowAdvertise="no" >
370 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
371 <MergeRef Id="msm_VBoxNetworkFlt" />
372 <?else ?>
373 <ComponentRef Id="cp_NetFltDriver" />
374 <?endif ?>
375 </Feature>
376 <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
377 Description="!(loc.VB_NetAdpDriver)"
378 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
379 Absent="allow" AllowAdvertise="no" >
380 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
381 <MergeRef Id="msm_VBoxNetworkAdp" />
382 <?else ?>
383 <ComponentRef Id="cp_NetAdpDriver" />
384 <?endif ?>
385 </Feature>
386 </Feature>
387<?endif ?>
388
389<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
390 <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
391 Description="!(loc.VB_Python)"
392 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
393 Absent="allow" AllowAdvertise="no" >
394 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
395 <MergeRef Id="msm_VBoxPython" />
396 <?else ?>
397 <ComponentRef Id="cp_VBoxPythonBinding" />
398 <?endif ?>
399 </Feature>
400<?endif ?>
401 </Feature>
402
403 <!-- Include user interface definition -->
404 <?include UserInterface.wxi ?>
405
406 <InstallExecuteSequence>
407
408 <!--
409 To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
410
411 InstallUISequence (client side) is:
412 AppSearch
413 LaunchConditions
414 ValidateProductID
415 CostInitialize
416 FileCost
417 CostFinalize
418 ExecuteAction -> will pass control over to "InstallExecuteSequence"
419
420 The first six actions above will be repeated but skipped on the server
421 side if already run on the client side.
422
423 InstallExecuteSequence (server side) is:
424 <First six action from InstallUISequence>
425 .
426 InstallInitialize
427 .
428 InstallFinalize
429
430 The actions between InstallInitialize and InstallFinalize will be gone through twice:
431 - The first time the installer creates an installation script containing all actions in the right
432 sequence which need to get executed in a batch later. At this point the launch conditions for
433 custom actions must be met already!
434 - The second time the generated installation script will be run as-is.
435
436 Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
437 need public properties (that is, UPPERCASE properties).
438 -->
439
440 <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
441 <AppSearch Sequence="1"></AppSearch>
442 <LaunchConditions After="AppSearch" />
443
444 <!-- First install the new version and then remove the old version. This is more efficient -->
445 <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED]]></RemoveExistingProducts>
446
447 <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
448 <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR]]></Custom>
449
450 <!-- Check + unininstall old TAP instances - we don't need them anymore -->
451 <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
452
453 <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
454 <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
455
456 <!-- Uninstall branding on complete uninstall, not on update -->
457 <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
458 <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
459
460<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
461 <?include VBoxMergeAppSeq.wxi ?>
462 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
463 <?include VBoxMergeCOM32On64Seq.wxi ?>
464 <?endif ?>
465 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
466 <?include VBoxMergeNetFltSeq.wxi ?>
467 <?endif ?>
468 <?include VBoxMergeNetAdpSeq.wxi ?>
469 <?include VBoxMergeUSBSeq.wxi ?>
470 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
471 <?include VBoxMergePythonSeq.wxi ?>
472 <?endif ?>
473<?endif ?>
474
475 </InstallExecuteSequence>
476
477 </Product>
478</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