VirtualBox

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

Last change on this file since 51326 was 51226, checked in by vboxsync, 11 years ago

Whops.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.8 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)" 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="$(var.Property_ProgramFiles)" Name="PFiles">
191 <Directory Id="INSTALLDIR" Name="$(env.VBOX_PRODUCT)">
192<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
193 <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1" />
194 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
195 <Merge Id="msm_VBoxCOM32On64" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
196 <?endif ?>
197<?else ?>
198 <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
199 <?include VBoxMergeApp.wxi ?>
200 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
201 <?include VBoxMergeCOM32On64.wxi ?>
202 <?endif ?>
203 </Directory>
204<?endif ?>
205 <Directory Id="dir_Drivers" Name="drivers">
206 <Directory Id="dir_USB" Name="USB">
207<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
208 <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
209<?else ?>
210 <Directory Id="msm_VBoxUSBFolder" FileSource=".">
211 <?include VBoxMergeUSB.wxi ?>
212 </Directory>
213<?endif ?>
214 </Directory>
215 <Directory Id="dir_Network" Name="network">
216<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
217 <Directory Id="dir_NetFlt" Name="netflt">
218 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
219 <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1" />
220 <?else ?>
221 <Directory Id="msm_VBoxNetworkFltFolder" FileSource=".">
222 <?include VBoxMergeNetFlt.wxi ?>
223 </Directory>
224 <?endif ?>
225 </Directory>
226<?endif ?>
227 <Directory Id="dir_NetAdp" Name="netadp">
228<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
229 <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1" />
230<?else ?>
231 <Directory Id="msm_VBoxNetworkAdpFolder" FileSource=".">
232 <?include VBoxMergeNetAdp.wxi ?>
233 </Directory>
234<?endif ?>
235 </Directory>
236 </Directory>
237 </Directory>
238<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
239 <Directory Id="dir_SDK" Name="sdk">
240 <Directory Id="dir_SDKInstall" Name="install">
241 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
242 <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
243 <?else ?>
244 <Directory Id="msm_VBoxPythonFolder" FileSource=".">
245 <?include VBoxMergePython.wxi ?>
246 </Directory>
247 <?endif ?>
248 </Directory>
249 </Directory>
250<?endif ?>
251 <!-- Set up special directory IDs for referencing to the start menu
252 or the Quick Launch bar.
253 See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
254 http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
255 <Directory Id="ProgramMenuFolder">
256 <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
257 </Directory>
258
259 <Directory Id="DesktopFolder" Name="Desktop"/>
260
261 <Directory Id="AppDataFolder" Name="AppData">
262 <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
263 <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
264 <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
265 </Directory>
266 </Directory>
267 </Directory>
268
269 <!-- Shortcut(s) in start menu -->
270 <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
271 <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
272 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
273 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
274 Type="string" Value="installed" KeyPath="yes" />
275 <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
276 </Component>
277
278 <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
279 <Condition>VBOX_INSTALLDESKTOPSHORTCUT</Condition>
280 <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
281 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
282 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
283 Value="installed" KeyPath="yes" />
284 </Component>
285
286 <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
287 <CreateFolder/>
288 <Condition>VBOX_INSTALLQUICKLAUNCHSHORTCUT</Condition>
289 <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
290 Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
291 <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
292 Type="string" Value="installed" KeyPath="yes" />
293 </Component>
294
295 </Directory>
296 </Directory>
297 </Directory> <!-- TARGETDIR -->
298
299 <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
300 otherwise this will break manual selection using the ADDLOCAL= syntax
301 when using the command line / scripts (see VBox manual). -->
302 <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
303 Description="!(loc.VB_App)"
304 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
305 Absent="disallow" AllowAdvertise="no" >
306 <!-- Components which are handled only by this installer itself -->
307 <ComponentRef Id="cp_StartMenuVBox" />
308 <ComponentRef Id="cp_DesktopShortcut" />
309 <ComponentRef Id="cp_QuickLaunchVBox" />
310 <!-- Components handled either by the installer itself or
311 the merge module -->
312<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
313 <MergeRef Id="msm_VBoxApp" />
314 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
315 <MergeRef Id="msm_VBoxCOM32On64" />
316 <?endif ?>
317<?else ?>
318 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
319 <ComponentRef Id="cp_RegisterExtensions" />
320 <?endif ?>
321 <?if $(env.VBOX_WITH_DOCS_PACKING) = "yes" ?>
322 <ComponentRef Id="cp_Docs" />
323 <?endif ?>
324 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
325 <ComponentRef Id="cp_NLS" />
326 <?endif ?>
327 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
328 <ComponentRef Id="cp_MainCOM_x86" />
329 <?endif ?>
330 <ComponentRef Id="cp_MainCOM" />
331 <ComponentRef Id="cp_MainBinaries" />
332 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
333 <ComponentRef Id="cp_QtAccessible" />
334 <?endif ?>
335 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
336 <ComponentRef Id="cp_VBoxPyInst" />
337 <ComponentRef Id="cp_VBoxPyMod" />
338 <?endif ?>
339
340 <?if $(env.VBOX_WITH_CROGL) = "yes" ?>
341 <ComponentRef Id="cp_VBoxCROpenGL" />
342 <?endif ?>
343 <ComponentRef Id="cp_VBoxSDLBinaries" />
344 <?if $(env.VBOX_WITH_WEBSERVICES) = "yes" ?>
345 <ComponentRef Id="cp_VBoxWebService" />
346 <?endif ?>
347 <ComponentRef Id="cp_VBoxDrv" />
348 <?endif ?>
349
350 <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
351 Description="!(loc.VB_USBDriver)"
352 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
353 Absent="allow" AllowAdvertise="no" >
354<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
355 <MergeRef Id="msm_VBoxUSB" />
356<?else ?>
357 <ComponentRef Id="cp_USBFilterDriver" />
358 <ComponentRef Id="cp_USBDeviceDriver" />
359<?endif ?>
360 </Feature>
361
362<?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
363 <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
364 Description="!(loc.VB_Network)"
365 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
366 Absent="allow" AllowAdvertise="no" >
367 <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
368 Description="!(loc.VB_NetFltDriver)"
369 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
370 Absent="allow" AllowAdvertise="no" >
371 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
372 <MergeRef Id="msm_VBoxNetworkFlt" />
373 <?else ?>
374 <ComponentRef Id="cp_NetFltDriver" />
375 <?endif ?>
376 </Feature>
377 <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
378 Description="!(loc.VB_NetAdpDriver)"
379 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
380 Absent="allow" AllowAdvertise="no" >
381 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
382 <MergeRef Id="msm_VBoxNetworkAdp" />
383 <?else ?>
384 <ComponentRef Id="cp_NetAdpDriver" />
385 <?endif ?>
386 </Feature>
387 </Feature>
388<?endif ?>
389
390<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
391 <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
392 Description="!(loc.VB_Python)"
393 ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
394 Absent="allow" AllowAdvertise="no" >
395 <?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
396 <MergeRef Id="msm_VBoxPython" />
397 <?else ?>
398 <ComponentRef Id="cp_VBoxPythonBinding" />
399 <?endif ?>
400 </Feature>
401<?endif ?>
402 </Feature>
403
404 <!-- Include user interface definition -->
405 <?include UserInterface.wxi ?>
406
407 <InstallExecuteSequence>
408
409 <!--
410 To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
411
412 InstallUISequence (client side) is:
413 AppSearch
414 LaunchConditions
415 ValidateProductID
416 CostInitialize
417 FileCost
418 CostFinalize
419 ExecuteAction -> will pass control over to "InstallExecuteSequence"
420
421 The first six actions above will be repeated but skipped on the server
422 side if already run on the client side.
423
424 InstallExecuteSequence (server side) is:
425 <First six action from InstallUISequence>
426 .
427 InstallInitialize
428 .
429 InstallFinalize
430
431 The actions between InstallInitialize and InstallFinalize will be gone through twice:
432 - The first time the installer creates an installation script containing all actions in the right
433 sequence which need to get executed in a batch later. At this point the launch conditions for
434 custom actions must be met already!
435 - The second time the generated installation script will be run as-is.
436
437 Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
438 need public properties (that is, UPPERCASE properties).
439 -->
440
441 <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
442 <AppSearch Sequence="1"></AppSearch>
443 <LaunchConditions After="AppSearch" />
444
445 <!-- First install the new version and then remove the old version. This is more efficient -->
446 <RemoveExistingProducts After="InstallValidate">PREVIOUSVERSIONSINSTALLED</RemoveExistingProducts>
447
448 <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
449 <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR]]></Custom>
450
451 <!-- Check + unininstall old TAP instances - we don't need them anymore -->
452 <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
453
454 <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
455 <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
456
457 <!-- Uninstall branding on complete uninstall, not on update -->
458 <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
459 <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
460
461<?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
462 <?include VBoxMergeAppSeq.wxi ?>
463 <?if $(env.VBOX_WITH_32_ON_64_MAIN_API) = "yes" ?>
464 <?include VBoxMergeCOM32On64Seq.wxi ?>
465 <?endif ?>
466 <?if $(env.VBOX_WITH_NETFLT) = "yes" ?>
467 <?include VBoxMergeNetFltSeq.wxi ?>
468 <?endif ?>
469 <?include VBoxMergeNetAdpSeq.wxi ?>
470 <?include VBoxMergeUSBSeq.wxi ?>
471 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
472 <?include VBoxMergePythonSeq.wxi ?>
473 <?endif ?>
474<?endif ?>
475
476 </InstallExecuteSequence>
477
478 </Product>
479</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