I magaged to fix this myself. This is what you need to do in my case:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Fragment>
    <DirectoryRef Id="LoggingDir">
      <Directory Id="MySqlConnectorDir" Name="MySqlConnector">
        <!-- Assemblies -->
        <Directory Id="AssembliesDir" Name="Assemblies">
          <Component Id="MySqlConnectorData"
Guid="B673CFFC-88AE-4234-B587-07BCE11ECE78">
            <File Id="mysql.data.dll" Name="mysql.data.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.data.dll" KeyPath="yes"
AssemblyManifest="mysql.data.dll" Assembly=".net">
              <AssemblyName Id="FileVersion" Value="6.1.1.0" />
            </File>
          </Component>
          <Component Id="MySqlConnectorDataEntity"
Guid="E8028349-4AF9-429e-B912-068A97425CC2">
            <File Id="mysql.data.entity.dll" Name="mysql.data.entity.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.data.entity.dll"
KeyPath="yes" AssemblyManifest="mysql.data.entity.dll" Assembly=".net">
              <AssemblyName Id="FileVersion" Value="6.1.1.0" />
            </File>
          </Component>
          <Component Id="MySqlConnectorWeb"
Guid="953C63B5-5D80-403f-8288-58383E6D18DC">
            <File Id="mysql.web.dll" Name="mysql.web.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.web.dll" KeyPath="yes"
AssemblyManifest="mysql.web.dll" Assembly=".net">
              <AssemblyName Id="FileVersion" Value="6.1.1.0" />
            </File>
          </Component>
        </Directory>
        <!-- Other -->
        <Component Id="MySqlConnectorOther"
Guid="B632A7D1-E4DB-487c-A81C-F49711F5AB6F">
          <File Id="mysql.data.cf.dll" Name="mysql.data.cf.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.data.cf.dll"></File>
          <File Id="mysql.data.dll.copy" Name="mysql.data.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.data.dll"></File>
          <File Id="mysql.data.entity.dll.copy" Name="mysql.data.entity.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.data.entity.dll"></File>
          <File Id="mysql.web.dll.copy" Name="mysql.web.dll"
Source="..\..\BinReference\MySqlConnector6.1.1\mysql.web.dll"></File>
        </Component>
      </Directory>
    </DirectoryRef>
    
    <!-- Binary to install -->
    <Binary Id="MySqlDataBin"
SourceFile="..\..\BinReference\MySqlConnector6.1.1\mysql.data.dll"/>
    <Binary Id="MySqlDataEntityBin"
SourceFile="..\..\BinReference\MySqlConnector6.1.1\mysql.data.entity.dll"/>
    <Binary Id="MySqlWebBin"
SourceFile="..\..\BinReference\MySqlConnector6.1.1\mysql.web.dll"/>
            
    <!-- Custom actions for running installutil -->
    <!-- Install -->
    <CustomAction Id="InstallMySqlData" Directory="MySqlConnectorDir"
Return='check'
ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\installUtil.exe"
/LogToConsole=false "[MySqlConnectorDir]mysql.data.dll"'>
    </CustomAction>
    <CustomAction Id="InstallMySqlDataEntity" Directory="MySqlConnectorDir"
Return='check'
ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\installUtil.exe"
/LogToConsole=false "[MySqlConnectorDir]mysql.data.entity.dll"'>
    </CustomAction>
    <CustomAction Id="InstallMySqlWeb" Directory="MySqlConnectorDir"
Return='check'
ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\installUtil.exe"
/LogToConsole=false "[MySqlConnectorDir]mysql.web.dll"'>
    </CustomAction>
    
    <!-- Sequence for installation -->
    <InstallExecuteSequence>
      <Custom Action="InstallMySqlData" After="InstallFinalize"
Overridable="yes">NOT Installed</Custom>
      <Custom Action="InstallMySqlDataEntity" After="InstallFinalize"
Overridable="yes">NOT Installed</Custom>
      <Custom Action="InstallMySqlWeb" After="InstallFinalize"
Overridable="yes">NOT Installed</Custom>
    </InstallExecuteSequence>

  </Fragment>
</Wix>
-- 
View this message in context: 
http://n2.nabble.com/How-to-add-MySql-Connector-6-1-1-in-my-MSI-package-tp3754901p3768434.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to