Bug #5444 winmysqladmin puts the my.ini into the wrong location
Submitted: 7 Sep 2004 8:33 Modified: 8 Sep 2004 0:54
Reporter: Richard Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:1.4 OS:Windows (Windows 2003 server)
Assigned to: CPU Architecture:Any

[7 Sep 2004 8:33] Richard
Description:
upon running winmysqladmin.exe - it saves the my.ini into C:\Documents and settings\Administrator\WINDOWS. I can move it to C:\ and it will work, but winmysqladmin isnt content finding the file from there, and proceeds to want the new admin username and password and creates a new my.ini, in the wrong place again.

How to repeat:
Install. Run winmysqladmin

Suggested fix:
Have it open the right location to save the file to, and open it again when re-opening the application
[8 Sep 2004 0:54] MySQL Verification Team
The WinMySQLAdmin uses the Win32 API function GetWindowsDirectory()
like the MySQL server itself does. However the location for every user
of the WinDir depends of settings done in the machine, how the remarks
from MSDN of that function explains:

Remarks
The Windows directory is the directory where an application should store initialization and help files. If the user is running a shared version of the system, the Windows directory is guaranteed to be private for each user. 

If an application creates other files that it wants to store on a per-user basis, it should place them in the directory specified by the HOMEPATH environment variable. This directory will be different for each user, if so specified by an administrator, via the User Manager administrative tool.
.............
[28 Sep 2004 1:45] Liu Yan
i encounter this problem too...

it seems that it is the "terminal service" which causes the "windows directory" becomes to "C:\Documents and Settings\Administrator\Windows"