Bug #61151 MySQL .NET Connector installer 6.3.6 fails
Submitted: 12 May 2011 14:28 Modified: 12 May 2011 15:54
Reporter: Dave Evans Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.3.6 OS:Microsoft Windows (XP SP2)
Assigned to: CPU Architecture:Any

[12 May 2011 14:28] Dave Evans
Description:
.NET Connector Installer fails on my system, with 'installer ended prematurely' message.

After enabling MSI logging, I noticed this in the log:

CAQuietExec:  "c:\windows\microsoft.net\framework\v4.0.30319\installUtil.exe" /LogToConsole=false /LogFile=  "E:\Program Files\MySQL\MySQL Connector Net 6.3.6\Assemblies\v2.0\MySql.Data.dll"
MSI (s) (08!98) [15:16:34:328]: Closing MSIHANDLE (186) of type 790531 for thread 408
MSI (s) (08!98) [15:16:34:328]: Creating MSIHANDLE (187) of type 790531 for thread 408
CAQuietExec:  Error 0x80070003: Command failed to execute.

This is because my Windows OS is installed to E:\Windows, not C:\Windows. I don't know why it was trying to find the .NET installUtil.exe utility in that location. It may be a misconfiguration on my machine, or does the installer always assume Windows will be installed on C:\ ?

How to repeat:
Unsure how to repeat as it may be an issue with my machine, maybe try installing on a machine with Windows installed to a drive other than C:\.

Suggested fix:
Workaround: I created a directory at c:\windows\microsoft.net\framework\v4.0.30319 and copied over all the .NET Framework files. This caused the installer to succeed.
[12 May 2011 15:54] Reggie Burnett
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html
[21 Jun 2011 3:53] Tony Halim
Great solution !, after days of searching for the fix, finally this one fits for me...thanks a lot Dave...