Re: [Bug-gnubg] Uninstaller doesn't delete personal files
From:
Massimiliano Maini
Subject:
Re: [Bug-gnubg] Uninstaller doesn't delete personal files
Date:
Thu, 17 Apr 2008 09:44:18 +0200
"Christian Anthon" <address@hidden>
wrote on 16/04/2008 22:23:29:
> On Tue, Apr 15, 2008 at 10:12 AM, Massimiliano Maini
> <address@hidden> wrote:
> >
> >
> > I agree. I have to check how/if this can be done with InnoSetup
(windows).
> > ot sure is gonna be easy to identify exactly where the .gnubg
directory is
> > created ...
> >
>
> I don't know much about innosetup, but I'm 99% sure that it will have
> a way to remove files installed in the current users home directory.
>
> Christian.
Apparently it lacks support for "interactive
uninstalls":
I had to create a .bat script executed by the uninstaller.
It checks if the .gnubg dir is there, it prompts to delete it.
Seems to work fine, but to get the home dir I had
to use a constant in Innosetup that gives the User Application Data dir, like:
{userappdata}\..\.gnubg
This lrelies on the assumption that the user applciation
data dir is in the user home dir. I think its true on XP and Vista, dont know
about the others Wins ...