VirtualBox.wxs revision 1ab3b6ebbcab4918a5a611bb2f020fc650c70544
0N/A available from http://www.virtualbox.org. This file is free software;
1879N/A Name="$(env.VBOX_PRODUCT) $(env.VBOX_VERSION_STRING)"
1879N/A Version="$(var.Property_Version)"
1879N/A Manufacturer="$(env.VBOX_VENDOR)">
0N/A Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) installation package"
0N/A Comments="$(env.VBOX_PRODUCT) installation package"
0N/A Manufacturer="$(env.VBOX_VENDOR)"
1915N/A Platform="$(var.Property_Platform)"/>
1172N/A <!-- Force overwriting all files and re-create shortcuts to guarantee a working environment -->
0N/A <RegistrySearch Id="RegSearchInnotekVersion" Root="HKLM" Key="SOFTWARE\Innotek\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
0N/A <!-- Minimum and Maximum specify the range of versions we are supposed to update with this upgrade.
0N/A IncludeMaximum and IncludeMinimum specify whether the bound value is actually included in the range or not
4123N/A (IncludeMaximum = yes meaning to find versions below or equal to the version specified in Maximum while
0N/A OnlyDetect tells the installer not to remove the previous product. This is useful as long as we
0N/A <Upgrade Id="C4BAD770-BFE8-4D2C-A592-693028A7215B"> <!-- Upgrade of Sun xVM VirtualBox >= v1.6.0 -->
0N/A <!-- Upgrade is flagged if current-install is newer than or equal to package - TODO: should make a dialog appear asking user to confirm downgrade -->
0N/A <!-- Setting "OnlyDetect" to "no" makes the installer uninstall an already newer installed version -->
0N/A <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="$(var.Property_Version)" OnlyDetect="no" />
0N/A <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Minimum="1.0.0.0" Maximum="$(var.Property_Version)" IncludeMaximum="yes" />
0N/A Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
0N/A <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
0N/A <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
0N/A Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
0N/A <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir"
1915N/A <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
1915N/A <RegistrySearch Id="RegSearchSunVersion" Root="HKLM" Key="SOFTWARE\Sun\VirtualBox" Name="Version" Type="raw" Win64="$(var.Property_Win64)"/>
1915N/A <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand="[INSTALLDIR]\VirtualBox.exe" Return="asyncNoWait" Impersonate="yes" />
2957N/A <CustomAction Id="ca_CheckSerial" BinaryKey="VBoxInstallHelper" DllEntry="CheckSerial" Impersonate="no"/>
1915N/A <CustomAction Id="ca_InstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="InstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
1915N/A <CustomAction Id="ca_InstallBrandingArgs" Property="ca_InstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
1915N/A <CustomAction Id="ca_UninstallBranding" BinaryKey="VBoxInstallHelper" DllEntry="UninstallBranding" Execute="deferred" Return="check" Impersonate="no"/>
1915N/A <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/>
2957N/A <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1" />
1915N/A <Merge Id="msm_VBoxUSB" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeUSB)" DiskId="1" />
2957N/A <Merge Id="msm_VBoxNetworkFlt" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkFlt)" DiskId="1" />
2957N/A <Merge Id="msm_VBoxNetworkAdp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeNetworkAdp)" DiskId="1" />
1915N/A <Merge Id="msm_VBoxPython" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergePython)" DiskId="1" />
0N/A <Component Id="cp_StartMenuVBox" Guid="C2DC321A-CE63-40EE-8A98-724DF8BD12FB" Win64="$(var.Property_Win64)">
0N/A <Shortcut Id="sc_StartMenuVBox" Directory="dir_StartMenuVBox" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
0N/A <Component Id="cp_DesktopShortcut" Guid="668F8A1A-F5CE-48B3-BB1A-3042EE27B279" Win64="$(var.Property_Win64)">
0N/A <Shortcut Id="sc_DesktopVBox" Directory="DesktopFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
0N/A <Component Id="cp_QuickLaunchVBox" Guid="CC19E026-938A-41CB-8E77-3F33296244B6" Win64="$(var.Property_Win64)">
0N/A <Shortcut Id="sc_QuickLaunchVBox" Directory="dir_QuicklaunchFolder" Name="$(env.VBOX_PRODUCT)" Description="$(env.VBOX_PRODUCT)"
0N/A Description="!(loc.VB_App)"
0N/A Description="!(loc.VB_USBDriver)"
0N/A Description="!(loc.VB_Network)"
0N/A Description="!(loc.VB_NetFltDriver)"
0N/A Description="!(loc.VB_NetAdpDriver)"
4127N/A Description="!(loc.VB_Python)"
4127N/A - The first time the installer creates an installation script containing all actions in the right
4127N/A sequence which need to get executed in a batch later. At this point the launch conditions for
4127N/A Also, the InstallUISequence and InstallExecuteSequence tables run in different sessions which
4127N/A <!-- AppSearch must be done before "RemoveExistingProducts" and before "FindRelatedProducts" -->
4127N/A <!-- First install the new version and then remove the old version. This is more efficient -->
0N/A <Custom Action="ca_OriginalTargetDir" After="FileCost"><![CDATA[(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)]]></Custom>
859N/A <Custom Action="ca_DefaultTargetDir" Before="FileCost" ><![CDATA[NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR]]></Custom>
0N/A <Custom Action="ca_InstallBrandingArgs" Before="ca_InstallBranding" ><![CDATA[NOT REMOVE]]></Custom>
0N/A <Custom Action="ca_UninstallBrandingArgs" Before="ca_UninstallBranding" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>