VirtualBox.wxs revision a7cb1a0bfefdfcfa6d366ce52826f5669f302e1f
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync VirtualBox Windows Installation Script (WiX)
056add8311718c0166b7036b31fd581858a607b3vboxsync Copyright (C) 2014 Oracle Corporation
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync This file is part of VirtualBox Open Source Edition (OSE), as
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync available from http://www.virtualbox.org. This file is free software;
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync you can redistribute it and/or modify it under the terms of the GNU
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync General Public License (GPL) as published by the Free Software
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync Foundation, in version 2 as it comes in the "COPYING" file of the
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
d97357e2036109245c83ba553d0290212e28ea40vboxsync<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
d97357e2036109245c83ba553d0290212e28ea40vboxsync xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- The merge module file names -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <?define Property_VBoxMergeApp = "$(env.VBOX_WIN_INST_MERGE_APP)" ?>
ff5b73421c77bc2a050f72008be9f3e88814275dvboxsync <?define Property_VBoxMergeCOM32On64 = "$(env.VBOX_WIN_INST_MERGE_COM32ON64)" ?>
056add8311718c0166b7036b31fd581858a607b3vboxsync <?define Property_VBoxMergeUSB = "$(env.VBOX_WIN_INST_MERGE_USB)" ?>
1147bd0ba1321d92a90514742709a20a244c255bvboxsync <?define Property_VBoxMergeNetworkFlt = "$(env.VBOX_WIN_INST_MERGE_NETFLT)" ?>
056add8311718c0166b7036b31fd581858a607b3vboxsync <?define Property_VBoxMergeNetworkAdp = "$(env.VBOX_WIN_INST_MERGE_NETADP)" ?>
387349b986368264694c1ab64b2914e73f566575vboxsync <?define Property_VBoxMergeNetworkLwf = "$(env.VBOX_WIN_INST_MERGE_NETLWF)" ?>
387349b986368264694c1ab64b2914e73f566575vboxsync <?define Property_VBoxMergeNetworkAdp6 = "$(env.VBOX_WIN_INST_MERGE_NETADP6)" ?>
1147bd0ba1321d92a90514742709a20a244c255bvboxsync <?define Property_VBoxMergePython = "$(env.VBOX_WIN_INST_MERGE_PYTHON)" ?>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync UpgradeCode="C4BAD770-BFE8-4D2C-A592-693028A7215B"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
d97357e2036109245c83ba553d0290212e28ea40vboxsync Language="!(loc.LANG)"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync Codepage="1252"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync Manufacturer="$(env.VBOX_VENDOR)">
056add8311718c0166b7036b31fd581858a607b3vboxsync Keywords="Installer"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
056add8311718c0166b7036b31fd581858a607b3vboxsync Comments="$(env.VBOX_PRODUCT) installation package"
056add8311718c0166b7036b31fd581858a607b3vboxsync Compressed="yes"
056add8311718c0166b7036b31fd581858a607b3vboxsync Manufacturer="$(env.VBOX_VENDOR)"
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallerVersion="200"
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallPrivileges="elevated"
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Global properties -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Property Id="ARPPRODUCTICON">IconVirtualBox</Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Property Id="ARPURLINFOABOUT">http://www.virtualbox.org</Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Property Id="ARPURLUPDATEINFO">http://www.virtualbox.org</Property>
387349b986368264694c1ab64b2914e73f566575vboxsync <!-- Default property for network adapter type -->
a7cb1a0bfefdfcfa6d366ce52826f5669f302e1fvboxsync <Property Id="NETWORKTYPE" Value="NDIS6" Secure="yes"/>
a7cb1a0bfefdfcfa6d366ce52826f5669f302e1fvboxsync <!-- Force NDIS5 on pre-Vista -->
a7cb1a0bfefdfcfa6d366ce52826f5669f302e1fvboxsync <SetProperty Id="NETWORKTYPE" After="CostFinalize" Value="NDIS5"><![CDATA[VersionNT < 600]]></SetProperty>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Install the product for all users on the system -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Force overwriting all files and re-create shortcuts to guarantee a working environment -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- VirtualBox properties -->
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync <Property Id="VBOX_INSTALLDESKTOPSHORTCUT" Value="1" />
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync <Property Id="VBOX_INSTALLQUICKLAUNCHSHORTCUT" Value="1" />
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync <Property Id="VBOX_REGISTERFILEEXTENSIONS" Value="1" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Make sure installation will not start on anything other but the NT family -->
056add8311718c0166b7036b31fd581858a607b3vboxsync VersionNT64
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync NOT VersionNT64
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync NOT VersionNT=500 AND NOT Version9X AND NOT VersionNT64
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Detect old innotek installation -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Force a manual uninstall of an already installed innotek VirtualBox version first -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistrySearch Id="RegSearchInnotekVersion" Root="HKLM" Key="SOFTWARE\Innotek\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync NOT VBOXINNOTEK
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- *************************** Upgrade packages only ******************************* -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
056add8311718c0166b7036b31fd581858a607b3vboxsync IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
056add8311718c0166b7036b31fd581858a607b3vboxsync (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
056add8311718c0166b7036b31fd581858a607b3vboxsync IncludeMaximum = no only finds those below the Maximum).
056add8311718c0166b7036b31fd581858a607b3vboxsync OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
056add8311718c0166b7036b31fd581858a607b3vboxsync only change files in the package -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
0104a9180d9c57d8c618245fbbcd8fc09a629a52vboxsync <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" IncludeMinimum="no" OnlyDetect="no" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Flag is set if the install will trigger an upgrade of an existing install -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- The product's icon table -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Icon Id="IconVirtualBox" SourceFile="$(env.VBOX_WINDOWS_ICON_FILE)" />
f89a9a89bbb6486fda960f0b97be6dc931ca5ba1vboxsync <!-- The media/binary IDs -->
f89a9a89bbb6486fda960f0b97be6dc931ca5ba1vboxsync <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
f89a9a89bbb6486fda960f0b97be6dc931ca5ba1vboxsync <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="high" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Custom actions -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Figure out where a previous installation was, if any -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
056add8311718c0166b7036b31fd581858a607b3vboxsync Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
056add8311718c0166b7036b31fd581858a607b3vboxsync </Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR"
056add8311718c0166b7036b31fd581858a607b3vboxsync Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
056add8311718c0166b7036b31fd581858a607b3vboxsync </Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_UninstallTAPInstances" BinaryKey="VBoxInstallHelper"
056add8311718c0166b7036b31fd581858a607b3vboxsync DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Detect old Sun installation -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Force a manual uninstall of an already installed Sun VirtualBox version first -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!--<Property Id="VBOXSUN">
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Property>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Condition Message="!(loc.SunFound)">
056add8311718c0166b7036b31fd581858a607b3vboxsync NOT VBOXSUN
056add8311718c0166b7036b31fd581858a607b3vboxsync </Condition>-->
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand="[INSTALLDIR]\VirtualBox.exe" Return="asyncNoWait" Impersonate="yes" />
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_CheckSerial" BinaryKey="VBoxInstallHelper" DllEntry="CheckSerial" Impersonate="no"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_InstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_UninstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1" />
ff5b73421c77bc2a050f72008be9f3e88814275dvboxsync <Merge Id="msm_VBoxCOM32On64" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeCOM32On64)" DiskId="1" />
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync <Directory Id="msm_VBoxApplicationFolder" FileSource=".">
b12bc1314a383038ad9554057813840cf638fde9vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync </Directory>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1" />
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync <Directory Id="msm_VBoxNetworkFltFolder" FileSource=".">
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync </Directory>
d97357e2036109245c83ba553d0290212e28ea40vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1" />
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync <Directory Id="msm_VBoxNetworkAdpFolder" FileSource=".">
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync </Directory>
387349b986368264694c1ab64b2914e73f566575vboxsync </Directory>
387349b986368264694c1ab64b2914e73f566575vboxsync <Merge Id="msm_VBoxNetworkLwf" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkLwf)" DiskId="1" />
387349b986368264694c1ab64b2914e73f566575vboxsync <Directory Id="msm_VBoxNetworkLwfFolder" FileSource=".">
387349b986368264694c1ab64b2914e73f566575vboxsync </Directory>
387349b986368264694c1ab64b2914e73f566575vboxsync </Directory>
387349b986368264694c1ab64b2914e73f566575vboxsync <Merge Id="msm_VBoxNetworkAdp6" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp6)" DiskId="1" />
387349b986368264694c1ab64b2914e73f566575vboxsync <Directory Id="msm_VBoxNetworkAdp6Folder" FileSource=".">
387349b986368264694c1ab64b2914e73f566575vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Directory>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync <Directory Id="msm_VBoxPythonFolder" FileSource=".">
0d9b4a74081f0b630334190dfc5091b9d10bba5fvboxsync </Directory>
09497b70aba5a0dec7f7caf48ac53ea91ec36734vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Set up special directory IDs for referencing to the start menu
056add8311718c0166b7036b31fd581858a607b3vboxsync or the Quick Launch bar.
056add8311718c0166b7036b31fd581858a607b3vboxsync See: http://msdn.microsoft.com/en-us/library/aa368276.aspx
056add8311718c0166b7036b31fd581858a607b3vboxsync http://wix.mindcapers.com/wiki/Shortcuts_in_WiX -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Directory Id="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Directory Id="dir_AppDataMicrosoft" Name="Microsoft">
056add8311718c0166b7036b31fd581858a607b3vboxsync <Directory Id="dir_AppDataMSIE" Name="Internet Explorer">
056add8311718c0166b7036b31fd581858a607b3vboxsync <Directory Id="dir_QuicklaunchFolder" Name="Quick Launch"/>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync </Directory>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Shortcut(s) in start menu -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
056add8311718c0166b7036b31fd581858a607b3vboxsync <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
056add8311718c0166b7036b31fd581858a607b3vboxsync Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
056add8311718c0166b7036b31fd581858a607b3vboxsync <?include $(env.PATH_TARGET)\Shortcuts_StartMenu.wxi ?>
056add8311718c0166b7036b31fd581858a607b3vboxsync </Component>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
056add8311718c0166b7036b31fd581858a607b3vboxsync <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
056add8311718c0166b7036b31fd581858a607b3vboxsync Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)" Type="string"
056add8311718c0166b7036b31fd581858a607b3vboxsync </Component>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
056add8311718c0166b7036b31fd581858a607b3vboxsync <CreateFolder/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Condition>VBOX_INSTALLQUICKLAUNCHSHORTCUT</Condition>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
056add8311718c0166b7036b31fd581858a607b3vboxsync Target="[INSTALLDIR]VirtualBox.exe" WorkingDirectory="INSTALLDIR"/>
056add8311718c0166b7036b31fd581858a607b3vboxsync <RegistryValue Root="HKCU" Key="$(var.Property_RegKeyInstall)"
056add8311718c0166b7036b31fd581858a607b3vboxsync </Component>
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync </Directory>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Note: Feature IDs *must not* be renamed to use any prefixes or such,
056add8311718c0166b7036b31fd581858a607b3vboxsync otherwise this will break manual selection using the ADDLOCAL= syntax
056add8311718c0166b7036b31fd581858a607b3vboxsync when using the command line / scripts (see VBox manual). -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxApplication" Title="VirtualBox Application" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_App)"
056add8311718c0166b7036b31fd581858a607b3vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync <!-- Components which are handled only by this installer itself -->
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync <!-- Components handled either by the installer itself or
7ee1eb709ec02b31f23a8ba734a8795452964633vboxsync the merge module -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxUSB" Title="VirtualBox USB Support" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_USBDriver)"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxNetwork" Title="VirtualBox Networking" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_Network)"
056add8311718c0166b7036b31fd581858a607b3vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxNetworkFlt" Title="VirtualBox Bridged Networking" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_NetFltDriver)"
950867fcd91ff725bbcc44623ae3d8888ed32da2vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxNetworkAdp" Title="VirtualBox Host-Only Networking" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_NetAdpDriver)"
950867fcd91ff725bbcc44623ae3d8888ed32da2vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
056add8311718c0166b7036b31fd581858a607b3vboxsync <Feature Id="VBoxPython" Title="VirtualBox Python 2.x Support" Level="1"
056add8311718c0166b7036b31fd581858a607b3vboxsync Description="!(loc.VB_Python)"
056add8311718c0166b7036b31fd581858a607b3vboxsync ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" Display="expand"
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Include user interface definition -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <InstallExecuteSequence>
056add8311718c0166b7036b31fd581858a607b3vboxsync To debug the action sequences, do: "msiexec /i <VBox.msi> /lar <Logfile>"
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallUISequence (client side) is:
056add8311718c0166b7036b31fd581858a607b3vboxsync LaunchConditions
056add8311718c0166b7036b31fd581858a607b3vboxsync ValidateProductID
056add8311718c0166b7036b31fd581858a607b3vboxsync CostInitialize
056add8311718c0166b7036b31fd581858a607b3vboxsync CostFinalize
056add8311718c0166b7036b31fd581858a607b3vboxsync ExecuteAction -> will pass control over to "InstallExecuteSequence"
056add8311718c0166b7036b31fd581858a607b3vboxsync The first six actions above will be repeated but skipped on the server
056add8311718c0166b7036b31fd581858a607b3vboxsync side if already run on the client side.
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallExecuteSequence (server side) is:
056add8311718c0166b7036b31fd581858a607b3vboxsync <First six action from InstallUISequence>
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallInitialize
056add8311718c0166b7036b31fd581858a607b3vboxsync InstallFinalize
056add8311718c0166b7036b31fd581858a607b3vboxsync The actions between InstallInitialize and InstallFinalize will be gone through twice:
056add8311718c0166b7036b31fd581858a607b3vboxsync - The first time the installer creates an installation script containing all actions in the right
056add8311718c0166b7036b31fd581858a607b3vboxsync sequence which need to get executed in a batch later. At this point the launch conditions for
056add8311718c0166b7036b31fd581858a607b3vboxsync custom actions must be met already!
056add8311718c0166b7036b31fd581858a607b3vboxsync - The second time the generated installation script will be run as-is.
056add8311718c0166b7036b31fd581858a607b3vboxsync Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
056add8311718c0166b7036b31fd581858a607b3vboxsync need public properties (that is, UPPERCASE properties).
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- First install the new version and then remove the old version. This is more efficient -->
0104a9180d9c57d8c618245fbbcd8fc09a629a52vboxsync <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED OR NEWERVERSIONDETECTED]]></RemoveExistingProducts>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR]]></Custom>
b4140dd023f9b7ad36a1db5adb76849bda6f8ac3vboxsync <!-- Check + unininstall old TAP instances - we don't need them anymore -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_UninstallTAPInstances" Before="InstallFiles" >1</Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_InstallBranding" Before="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync <!-- Uninstall branding on complete uninstall, not on update -->
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>
056add8311718c0166b7036b31fd581858a607b3vboxsync </InstallExecuteSequence>