Bug #49966 Fatal Error when trying to uninstall MySQL Connector Net 6.1.2, can't upgrade
Submitted: 28 Dec 2009 22:28 Modified: 28 Jan 2010 7:04
Reporter: Wayne Perrill Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:6.1.2 OS:Windows (Windows 2000)
Assigned to: CPU Architecture:Any

[28 Dec 2009 22:28] Wayne Perrill
Description:
My dev box's installation of the MySQL Connector NET 6.1.2 is corrupt, and it will not uninstall. I've searched the bug fix archives and chatted with people on the MySQL forum (and others) but no one has been able to help me uninstall the corrupt connector so far.

Uninstall procedure - type 1: I have tried running the MySQL Connector Net 6.1.2 Setup Wizard. I have tried simply using the "Remove" option and it is detailed below (under "How to repeat") I have tried rebooting repeatedly, with no effect. I have tried upgrading to 6.2.2 and 6.1.3 but they will install until 6.1.2 is uninstalled. 

I have tried the Change option and while it runs fine, it has no effect. 

I have tried the Repair option. The progress bar goes forward for a time and then it throws the error "Failed to install the performance counters. (-2147024713)". It then rolls back the action (you can see the progress indicator running backwards) and it throws the "Fatal error during installation." message.

Uninstall procedure - type 2: I have also tried to uninstall by clicking Remove in Add/Remove Programs. The progress indicator runs forward for awhile, but then reverses course and displays a small dialog box with the error message. "Fatal error during installation."

How to repeat:
1. Run the MySQL Connector Net 6.1.2 Setup Wizard (Open Add/Remove Programs, click "Change" button)

2. Click "Remove" button

(It progresses part way through the install process, then the progress bar runs backwards and a large dialog box appears)

<title> MySQL Connector Net 6.1.2 Setup Wizard ended prematurely.</title>

MySQL Connector Net 6.1.2 Setup Wizard ended prematurely because of an error. Your system has not been modified. To install the program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard.

3. Click the "Finish" button.

The application displays a "Fatal error during installation." message.

4. Click "OK" and I am returned to the Add/Remove Programs window.

(Note: These errors don't "seem" terribly informative, so please see the description for details (e.g. The Setup Wizard's "Repair" function throws the error "Failed to install the performance counters. (-2147024713)" which at least looks more specific)

Suggested fix:
Preferred: A patch so I can uninstall and attempt to upgrade to a (hopefully functional) new version of the .NET connector.

Acceptable: Manual uninstall procedure that will allow me to upgrade.
[29 Dec 2009 15:00] MySQL Verification Team
Thank you for the bug report. That happened for you only in Windows 2000 box or another OS version too?. Thanks in advance.
[29 Dec 2009 19:34] Wayne Perrill
Correct. The install errors are only on Windows 2000.

There are two additional (possibly important?) points that may (or may not help):

- I did not have to run the MySQL installer on my production server to get up and running so I did not have to uninstall.

I'm in shared hosting, so my production account only involves (1) copying the development DB instance up to production with MySQL Admininstrator, (2) uploading the MySql.Data.dll and MySql.Web.dll assemblies to the bin folder of my .NET project, and (3) some minor revisions my web.config file. However the installer on my dev box did numerous things, most of which I probably don't even know about (including using the registry which I'm not comfortable editing without explicit instructions).

- I have replicated other errors on my shared hosting account.

e.g. I diagnosed there was a problem with the connector when I began receiving the error message - Unknown column 'g.TimeslotId' in 'field list' in response to a query. When I remove the WHERE clause it returns TimeslotId fine (and all other columns requested), but when I reinsert the WHERE clause the error reappears. I have replicated this error on my production account. 

I was also told to try rebooting (both the computer and the MySQL instance and I've tried about a dozen times but I can still not remove the error. It was at this time that it was recommended that a new version of the connector 6.2.2 was available and I should upgrade. 

Which got me here. ;)
[28 Jan 2010 1:29] zee chen
I got the same problem of 6.1.3 but I use windows XP ultimate
[28 Jan 2010 7:04] Tonci Grgin
Sorry guys I missed this report.

This is probably trust-level and/or user-profile and/or OS problem. Please see any of the reports describing similar problems and steps to manually remove c/NET in BugsDB (Bug#40985 or Bug#31546...).

Google for a pair of utilities named msiinv and msizap.  msiinv will list all the products that think they are installed.  msizap will kill a product given its product code.
[21 Mar 2017 7:36] Keerthana M
I am having the same problem now in mysql connector net 6.3.9... I tried may times but i cant uninstall.. please provide some solution
[23 Sep 2021 14:51] Praykshee Saini
Im having the same issue with uninstalling mysql connector NET. Im using windows. is there any solution to this yet?