Bug #23899 Installer always fails with "Error writing to file: MySql.Data.dll"
Submitted: 2 Nov 2006 17:03 Modified: 31 Jan 2007 16:00
Reporter: Ambrose Li Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:1.0.8 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[2 Nov 2006 17:03] Ambrose Li
Description:
Running the MySQL Connector/Net setup for 1.0.8 always fails with the following error (Note that it refers to "that directory" without telling the user which directory it is referring to, so it is impossible to verify anything):

MySQL Connector Net 1.0.8 Setup

Error writing to file: MySql.Data.dll. Verify that you have access to that directory.

How to repeat:
1. Download MySQL Connector/Net 1.0.8 to WinXP
2. Unpack the archive
3. Double-click the MySql.Data icon
4. Choose any installation method and try to install

Suggested fix:
At least tell the user which directory it is trying to write to.
[2 Nov 2006 17:04] Ambrose Li
Sorry, forgot to record the following:

When the error message appears, the user is offered an option to Retry. Pressing the Retry button results in the following error:

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2350.
[2 Nov 2006 17:08] Ambrose Li
The same problem occurs also with the 5.0.1 Beta installer.
[7 Nov 2006 14:31] Tonci Grgin
Hi Ambrose and thanks for your problem report. 
I can't find error you mentioned in our msi file so it's probably comming from windows. What I think is happening is that some process is keeping lock on MySQL connector/NET driver and/or your AV or firewall is stopping installation from replacing old driver and/or windows are stopping the installation due to insufficient privileges. Please recheck all conditions.
[27 Dec 2006 13:02] Anton Hughes
Hi

I am also getting exactly the same error, and I have admin permissions on this box. It is win 2003
[17 Jan 2007 18:26] Damian T
Hi.
I had exactly the same problem and tried everything even running the installer from the command line.
I eventually downloaded version 1.0.7 and it installed with no problem!
[18 Jan 2007 22:09] Adam Sneider
RTFM!!!

The installer for this release installs the assembly into the Global Assembly Cache (GAC) without giving you an option to not do this.  In the GA release (1.0.9), the installer will include an option to not register the provider in the GAC. 

Also, the installer attempts to install both 1.1 and 2.0 binaries into the respective GAC.  If you do not have both frameworks installed, the installer will give an error.  This will be fixed in the final product but for now you can work around this by doing a custom install and choosing the version of the driver for the framework you want to install.
[31 Jan 2007 16:00] MC Brown
A note has been added to the documentation to warn of the problem and the workaround.