VBoxMergePython.wxs revision f89a9a89bbb6486fda960f0b97be6dc931ca5ba1
59190ecd61435d19ba3515b876272aee7bd12298vboxsync<?xml version="1.0"?>
59190ecd61435d19ba3515b876272aee7bd12298vboxsync<!--
59190ecd61435d19ba3515b876272aee7bd12298vboxsync VirtualBox Windows Installation Script (WiX)
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Copyright (C) 2006-2014 Oracle Corporation
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync This file is part of VirtualBox Open Source Edition (OSE), as
59190ecd61435d19ba3515b876272aee7bd12298vboxsync available from http://www.virtualbox.org. This file is free software;
c55c68b6a3324172e9dc207926215845880b0f90vboxsync you can redistribute it and/or modify it under the terms of the GNU
c55c68b6a3324172e9dc207926215845880b0f90vboxsync General Public License (GPL) as published by the Free Software
c55c68b6a3324172e9dc207926215845880b0f90vboxsync Foundation, in version 2 as it comes in the "COPYING" file of the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c55c68b6a3324172e9dc207926215845880b0f90vboxsync-->
c55c68b6a3324172e9dc207926215845880b0f90vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync<?include Properties.wxi ?>
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync xmlns:difxapp="http://schemas.microsoft.com/wix/DifxAppExtension">
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync <Module Id="msm_VBoxPython"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Language="!(loc.LANG)"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Version="$(var.Property_Version)">
59190ecd61435d19ba3515b876272aee7bd12298vboxsync
59190ecd61435d19ba3515b876272aee7bd12298vboxsync <Package Id="0f4de366-a8f3-4842-a165-fb19251cde88"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Keywords="Installer"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Description="$(env.VBOX_PRODUCT) $(var.Property_VersionExt) Python bindings installation package"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Comments="$(env.VBOX_PRODUCT) Python bindings installation package"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Manufacturer="$(env.VBOX_VENDOR)"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync InstallerVersion="200"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync AdminImage="yes"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync InstallPrivileges="elevated"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Platform="$(var.Property_Platform)"
59190ecd61435d19ba3515b876272aee7bd12298vboxsync SummaryCodepage="1252"/>
<!-- Custom actions -->
<Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
<CustomAction Id="ca_InstallPythonAPI" BinaryKey="VBoxInstallHelper" DllEntry="InstallPythonAPI" Execute="deferred" Return="check" Impersonate="no"/>
<CustomAction Id="ca_InstallPythonAPIArgs" Property="ca_InstallPythonAPI" Value="[INSTALLDIR]" Execute="immediate"/>
<!-- Here comes the file/directory list -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="MergeRedirectFolder" FileSource=".">
<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
<!-- Python bindings -->
<Component Id="cp_VBoxPyInst" Guid="C9A40306-5102-11DE-A7BA-C3C555D89593" Win64="$(var.Property_Win64)">
<File Id="file_vboxapisetup.py" Name="vboxapisetup.py"
Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapisetup.py"
DiskId="$(var.Property_DiskIdCommon)" />
</Component>
<Directory Id="dir_SDKVBoxAPI" Name="vboxapi">
<Component Id="cp_VBoxPyMod" Guid="DF19CB76-5102-11DE-943B-13C755D89593" Win64="$(var.Property_Win64)">
<File Id="file___init__.py" Name="__init__.py"
Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapi\__init__.py"
DiskId="$(var.Property_DiskIdCommon)" />
<File Id="file_VirtualBox_constants.py" Name="VirtualBox_constants.py"
Source="$(env.PATH_OUT)\bin\sdk\installer\vboxapi\VirtualBox_constants.py"
DiskId="$(var.Property_DiskIdCommon)" />
</Component>
</Directory>
<?endif?>
<Component Id="cp_VBoxPythonBinding" Guid="293D7E11-78DA-4C31-AEED-AE2FE42F6881">
<Condition>VBOX_PYTHON_IS_INSTALLED</Condition>
</Component>
</Directory> <!-- MergeRedirectFolder -->
</Directory> <!-- TARGETDIR -->
<InstallExecuteSequence>
<Custom Action="ca_InstallPythonAPIArgs" Before="ca_InstallPythonAPI" ><![CDATA[&VBoxPython=3]]></Custom>
<Custom Action="ca_InstallPythonAPI" Before="InstallFinalize" ><![CDATA[&VBoxPython=3]]></Custom>
</InstallExecuteSequence>
</Module>
</Wix>