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