Files left behind after uninstall
Posted: Thu Jan 15, 2009 9:42 am
Also in {localappdata}\MediaMonkey, I don't get it why on uninstall the settings get deleted without any notice, but not the following:{app}\MMHelper.dll
{app}\DeskPlayer.temp.0
{app}\plugins\musepack.ini
You could just ask user if he/she wants to remove settings and these files.mediamonkey.m3u
MM.DB
../Previews
../VirtualCD
Maybe something like that in InnoSetup would do the job:
Code: Select all
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usUninstall then begin
if fileExists(ExpandConstant('{localappdata}\MediaMonkey\MediaMonkey.ini')) OR fileExists(ExpandConstant('{localappdata}\MediaMonkey\MM.DB')) then begin
if MsgBox(ExpandConstant('Message to ask the user to delete the files'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then begin
DeleteFile(ExpandConstant('{localappdata}\MediaMonkey\MediaMonkey.ini'));
DeleteFile(ExpandConstant('{localappdata}\MediaMonkey\MM.DB'));
DelTree(ExpandConstant('{localappdata}\MediaMonkey\Previews\'), True, True, True);
DelTree(ExpandConstant('{localappdata}\MediaMonkey\VirtualCD\'), True, True, True);
end;
end;
end;
end;