🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6951

Re: Uninstalling shortcuts

#6951
From: Jeff Kish
Date: Mon, 28 Mar 2005 23:06
39 lines
2306 bytes
On Mon, 28 Mar 2005 14:40:10 -0800, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote:

>
>"Jeff Kish" <jeff.kish@mro.com> wrote in message
>news:4gtg41hmhnj38nqcel689ans5t7mqnucpu@4ax.com...
>
>> I don't write anything explicitly to the registry to keep
>> track of things though.
>
>Then you won't be able to do what you are asking for.
>
>> So can someone explain the proper way to make my
>> cbuilder installation program remove shortcuts?
>
>The only way to do that is to do what every other install package does -
>keep track of the files you create during installation, so you know what to
>remove during uninstallation.  That doesn't take into account the user
>manually moving the shortcuts after than have been created.  You won't be
>able to do anything about that.  No other install package can handle that,
>either.  I suppose you could write a Shell Extension DLL that implements the
>ICopyHook interface so that you can update your tracking when files are
>being moved/deleted.  But that is just more work on your part.
>
>> I'm not sure if I need to use some sort of ipersistfile.delete
>> call or what.
>
>Once you know the filename of a .lnk file, just delete it like any other
>file.
>
>
>Gambit
>
OK. If I know the .lnk filename, then deleting that will "undo" what
the original creation of shortcuts did? I should be able to figure
that out I believe.

Thanks much
Jeff Kish
Technical Details
Message-ID: <2e3h41h68kqeu76pl6g8jrnu3i4aouo0qo@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4gtg41hmhnj38nqcel689ans5t7mqnucpu@4ax.com> <4248877a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cb471b520f9dc8bd
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jeff Kish <jeff.kish@mro.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Uninstalling shortcuts
Date: Mon, 28 Mar 2005 18:06:24 -0500
Message-ID: <2e3h41h68kqeu76pl6g8jrnu3i4aouo0qo@4ax.com>
References: <4gtg41hmhnj38nqcel689ans5t7mqnucpu@4ax.com> <4248877a@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 12.106.157.130
X-Trace: newsgroups.borland.com 1112050796 12.106.157.130 (28 Mar 2005 14:59:56 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail