Bug #12249 unInstalling does not remove all objects from system
Submitted: 28 Jul 2005 20:31 Modified: 20 Nov 2008 18:55
Reporter: Carsten Segieth Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0.10a OS:Windows (Windows XP Home (german))
Assigned to: Iggy Galarza CPU Architecture:Any

[28 Jul 2005 20:31] Carsten Segieth
Description:
After installing (with standard options) and unInstalling MySQL 5.0.10a some objects remain in the RegDB:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\9CE51F4E892C91C4AB43B682E082F9D2]
"00000000000000000000000000000000"="C:\\Programme\\MySQL\\MySQL Server 5.0\\data\\mysql\\columns_priv.frm"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]
"Description"="MySQL Ser"

[[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application]
"Sources"=hex(7):...." 
(here 'MySQL' is listed in the REG_MULTI_SZ string which's hex code I didn't copy)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL]
"EventMessageFile"=hex(2):..."
"TypesSupported"=dword:00000007

How to repeat:
- install 5.0.10a to the standard path (to make search for 'MySQL' easier) 
- unInstall from Add/Remove Software Menu
- open REGEDIT and search for 'MySQL'

Suggested fix:
remove ALL objects when unInstalling
[20 Nov 2008 18:55] Iggy Galarza
All references to [INSTALLDIR]\data and it's sub-folders are expected because the installer initially copies them but does not remove them.  This is by design and a safety mechanism meant to prevent accidental removal of these files.

After installing and uninstalling MySQL 5.0.51b, the only other hits I found for 'MySQL' in the registry were in the following locations

HKU\<GUID>\Software\Microsoft\Windows\ShellNoRoam\MUICache
HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache

and will be present because the MySQL Config Wizard was run.  This is a cache of applications that have been run and is managed by Windows.