Bug #61337 MySQL Connector Net Version 6.2.3 un and install error.
Submitted: 28 May 2011 11:50 Modified: 1 Jul 2011 17:59
Reporter: Fredrik Zelander Lundqvist Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:6.2.3 OS:Microsoft Windows
Assigned to: Julio Casal CPU Architecture:Any

[28 May 2011 11:50] Fredrik Zelander Lundqvist
Description:
Help me! I need to uninstall MySQL Connector Net 6.2.3 but i can't either change, repair or uninstall it. It's the same when installing. Always it says:

MySQL Connector Net 6.2.3 Setup Wizard ended prematurely!

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

Please help me! I need to install another version...

Contact at mail: czebrovnjik@hotmail.com

How to repeat:
.

Suggested fix:
.
[28 May 2011 11:53] Valeriy Kravchuk
Had you tried juts to install new version you need, without uninstalling this old one?
[28 May 2011 16:47] Fredrik Zelander Lundqvist
Yes I do, but it says:

Another version of this program is already installed.
The Installation of this Version can't continue.
If you want to remove the installed version of this program can you use Add/Remove Programs in Control Panel, and i use it but it don't work.
Please Reply fast!

(Sorry some bad english I translated from Swedish)
[3 Jun 2011 11:27] Bogdan Degtyariov
Fredrik,

This un-install error usually happens any DLL files in the install directory (usually "C:\Program Files\MySQL\MySQL Connector Net 6.2.3\Assemblies\v2.0" and "v4.0" if it exists) or GAC are replaced by other versions of Connector/NET DLLs.

This problem can be fixed by restoring the original files (copy them from another machine where they have not been replaced or manually extract from msi, which is tricky since file names in msi package are different).
[5 Jun 2011 22:05] Ron Davis
I'm receiving the same error message when attempting to install 
mysql-connector-net-6.3.6.msi
[16 Jun 2011 4:45] Bogdan Degtyariov
Fredrik, have you tried my recommendations on removing the old version of Connector/NET?
[16 Jun 2011 4:47] Fredrik Zelander Lundqvist
I don't have the have MySQL Connector NET version on my other PC xD So it dun works.
[16 Jun 2011 11:23] Bogdan Degtyariov
You can extract the original files from msi package using the following command line:

msiexec /a mysql.data.msi /qb TARGETDIR=c:\temp\mysql-connector-net

NOTE: c:\temp\mysql-connector-net has to be created before running the command
[20 Jun 2011 17:21] Louis Breda van
Hello,

As I wrote elswere this bug is a real pain! I absolutely do not understand how I could remove the installation.

Restore the original files !?? 
What are the original files !!??
The actual versions and files are 6.3.6 and they are already there !
But there are probalby older versions as well 6.3.4 ! At least remains 
  
Should I restore 6.3.4 first !? (no)

IMHO there is only one fix possible! That is a decent uninstall stript !

That script should of course be part of the next beta connector-release, but perhaps oracle can make it available as a separate file as a short term workarround!

Louis
[21 Jun 2011 9:31] Bogdan Degtyariov
Louis,

MySQL Connector/NET 6.3.6 would not allow installing without removing version 6.3.4. I do not know how you did that, but probably this is the reason why it cannot uninstall.

What do you see when running Control Panel -> Uninstall a Program?
Are there both versions of MySQL Connector/NET in the list?
[22 Jun 2011 15:04] Louis Breda van
Hello,

Bogdan,

As described in my bugreport,

GAC:  ^C:\windows\assembly^ does holt six files: 3 related to 6.3.4.0 and 3 related to 6.3.6.

Programm files: (x86)\MySQL holds the 6.3.6 connector

Configscreen: shows MySQL Connector Net 6.3.4 version 6.3.6

Please also read my bugreport Bug #61558: Impossible to update or remove the .NET connector !!

Sincerely,

Louis
[22 Jun 2011 15:22] Louis Breda van
Hello,

I fixed the problem in a dirty way:
- fetched the 6.3.4 files as described 
- added the mysql programm part from the msi archive to the programm directory
- removed !! :) 6.3.4 using the uninstaller from the config screen
- installed again the already present :) 6.3.6 another time
- removed :) 6.3.6. That worked now

Seems to be OK. But ....... this is just a workarround for a nasy bug of course !!

Louis
Louis
[1 Jul 2011 17:59] Julio Casal
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php

If you can provide more information, feel free to add it to this bug and change the status back to 'Open'.

Thank you for your interest in MySQL.
[1 Jul 2011 21:11] Louis Breda van
Bull Shit!!

Lot of people did notice problems related to removing and/or updating the connector.

It is not absolutely necessary to understand how the situation arrises. 

Far more imported is to change the (un)installer in such away that it 
remove all old MySQL connector stuff, even unexpected old registry and/or file remains.

Sincerely,

Louis
[1 Jul 2011 21:11] Louis Breda van
Bull Shit!!

Lot of people did notice problems related to removing and/or updating the connector.

It is not absolutely necessary to understand how the situation arrises. 

Far more imported is to change the (un)installer in such away that it 
remove all old MySQL connector stuff, even unexpected old registry and/or file remains.

Sincerely,

Louis
[29 Aug 2011 23:07] Miguel Solorzano
See http://bugs.mysql.com/bug.php?id=61915.
[6 Jun 2012 6:15] Peter Høgstedt
I too have spent more than a day on this problem. I do not understand why MySQL deems it necessary to obtain detailed information about how this well documented and widely known problem arises. That is just an example of some people who ought to do their work are very good at explaining why that just is not possible and that this is not their fault.
OF COURSE MySQL should SOLVE this problem. And strange 'Microsoft tools for XP' or 'Fix it' do not work satisfactoriy.
All that being said: MySQL is a great database, and it is a blessing that it can be used with Visual Studio 2010. 
The solution of course is a total new install on an brand new 64 bit machine.
[22 Jan 2014 18:17] planet love
buenos días,

el presente es para que me ayuden con el siguiente error cuando voy a desistalar la Versión msql connector net 6.3.6 para actualizar a la versión 6.5.4, el error dice lo siguiente "Faled to install performace counters. (-2147024894)", y no me dejas desistalar esta versión.  

agradezco su ayuda