Page 1 of 1

Files left behind after uninstall

Posted: Thu Jan 15, 2009 9:42 am
by Another_MM_User
{app}\MMHelper.dll
{app}\DeskPlayer.temp.0
{app}\plugins\musepack.ini
Also in {localappdata}\MediaMonkey, I don't get it why on uninstall the settings get deleted without any notice, but not the following:
mediamonkey.m3u
MM.DB
../Previews
../VirtualCD
You could just ask user if he/she wants to remove settings and these files.

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;

Re: Files left behind after uninstall

Posted: Thu Jan 15, 2009 3:50 pm
by nohitter151