🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Uninstalling shortcuts

#6950
From: Remy Lebeau (TeamB)
Date: Mon, 28 Mar 2005 22:40
29 lines
1977 bytes
"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
Technical Details
Message-ID: <4248877a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4gtg41hmhnj38nqcel689ans5t7mqnucpu@4ax.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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4gtg41hmhnj38nqcel689ans5t7mqnucpu@4ax.com>
Subject: Re: Uninstalling shortcuts
Date: Mon, 28 Mar 2005 14:40:10 -0800
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4248877a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112049530 68.69.17.41 (28 Mar 2005 14:38:50 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail