Files left behind after uninstall

Beta Testing for Windows Products and plugins

Moderator: Gurus

Another_MM_User

Files left behind after uninstall

Post 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;
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: Files left behind after uninstall

Post by nohitter151 »

MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
Post Reply