Bug #7821 System Properties error after MySQL Server Instance Configuration Wizard failure
Submitted: 11 Jan 2005 22:37 Modified: 18 Jan 2005 10:34
Reporter: Mark Rosenthal Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:4.0.20d-4.1.8 OS:Windows (Windows XP Pro)
Assigned to: CPU Architecture:Any

[11 Jan 2005 22:37] Mark Rosenthal
Description:
I just upgraded from MySQL 4.0.20d to 4.1.8 running on Windows XP Pro.  Since the previous installed version was 4.0.20d, instructions indicated this required an unistall and reinstall.  After the upgrade, right-clicking on "My Computer" and selecting "Properties" produces a message from rundll32.exe which says "This application has failed to start because framedyn.dll was not found."  As is typical of Microsoft error messages, this provides far too little information to be able to figure out what application is attempting to use framedyn.dll or what directory it's expecting to find framedyn.dll in.  Although I can't say for certain that the MySQL upgrade definitely caused this, I can say for certain that My Computer>Properties did not produce this error before I started the upgrade, and that while I was doing the upgrade I was not performing any other task on the computer.  I've looked through the background processes, and cannot find anything that might have deleted this file.  The only other things I was running at the time were  the Windows port of GNU Emacs 21.3.1 so I could take notes on the upgrade process, and Netscape 7.1 so I could read the upgrade instructions in section 2.3 of the MySQL manual (version 5.0.3-alpha).

The only thing I knowingly ran that would have deleted any files at all was the uninstall of MySQL 4.0.20d, which I ran by navigating through the menus as follows: Start>Settings>Control Panel>Add or Remove Programs>MySQL>Remove.  Could it be the 4.0.20d uninstall code that deleted framedyn.dll?  And if so, does the same problem continue to exist in the uninstall code for later versions as well?

How to repeat:
Here is the complete list of steps I followed to do the upgrade:

1) I dumped the database with the command:
	mysqldump --opt --all-databases --result-file=all_databases_20050111.sql --verbose -uroot -p
2) I shut down the MySQL server:
	My Computer>Manage>Services and Applications>Services>MySQL>Properties>General
	Click on "Stop"
	Change Startup type to "disabled" and click on "Apply"
3) I removed the MySQL service with the command:
	mysqld --remove
4) I uninstalled MySQL 4.0.20d by clicking on:
	Start>Settings>Control Panel>Add or Remove Programs>MySQL>Remove
5) I unpacked mysql-4.1.8-win.zip which produced Setup.exe
6) I double-clicked on Setup.exe and followed the installation procedure.  I selected "Custom" installation, and instructed it to install everything except the MySQL config utility for DOS-derived versions of Windows.  I also changed the installation partition from C: to D:.

7) At the end of the installation, the MySQL Server Instance
Configuration Wizard automatically ran.  During this, I encountered a problem which I've submitted as Bug #7820.  As a result of this problem, I had to try to undo whatever changes the wizard had made so I could start the wizard over again.  One of the changes I had to undo was a modification to the system's PATH environment variable, which meant I had to go to My Computer>Properties.  When I did so, I encountered an error I've never encountered before.  The title bar said: "rundll32.exe - Unable To Locate Component", and the message in the dialog box was: "This application has failed to start because framedyn.dll was not found.  Re-installing the application may fix this problem."  When I clicked on OK, the Windows XP System Properties window appeared and seemed to behave normally, and I was able to click on the "Advanced" tab, select Environment Variables>System Variables>Path>Edit, and remove "D:\Program Files\MySQL\MySQL Server 4.1\bin" from the path.

However, now whenever I access My Computer>Properties, rundll32.exe complains that framedyn.dll is missing.  There's no foreground or background process I can think of that was running during the time I was doing the upgrade that would have deleted any files, other than the uninstall of MySQL 4.0.20d.  So, although I don't have absolute proof, that's where the finger of suspicion points.
[12 Jan 2005 3:49] Mark Rosenthal
Upon further investigation, I found the document at http://support.microsoft.com/default.aspx?scid=kb;en-us;319114.  This mentions that framedyn.dll should be located in %SYSTEMROOT%\System32\Wbem.  I checked that directory and found the file.  I then checked the Path environment variable.  Although it looked correct, I deleted it and typed it in again.  That fixed the problem.  It might be worth checking what state the Path environment variable is left in when the MySQL Server Instance Configuration Wizard exits abnormally as I described in Bug #7820.
[17 Jan 2005 20:47] Mark Rosenthal
I just had to reinstall 4.1.8, and when I did so, the the complaint from Windows XP System Properties about a missing framedyn.dll reappeared.  I checked the environment variable "Path" and found that all references to "C:\WINDOWS" had been converted to "%SystemRoot%".  I converted them back and the problem went away.  I don't know if it's the installation or the MySQL Server Instance Configuration Wizard that's causing this.
[18 Jan 2005 10:34] Michael G. Zinner
Thanks for reporting. This is the same issue as in http://bugs.mysql.com/bug.php?id=7710 which was addressed in the new 4.1.9 installer. We are sorry for the inconvenience this issue caused.