Article View: comp.os.ms-windows.programmer.controls
Article #45Properly removing shortcuts from StartMenu (C/C++)
From: Arnaud Pichery
Date: Tue, 29 Sep 1998 00:00
Date: Tue, 29 Sep 1998 00:00
24 lines
2415 bytes
2415 bytes
Hello guys !
I've the following problem. I'm doing my application's uninstall program and
in order to clean up correctly the computer my application was installed on,
I would like to remove the shortcuts I've created in the Start Menu.
(To create my shortcuts, I used the IShellLink & IPersistFile interfaces)
Basically I used to locate the special folder for StartMenu\Programs with
the SHGetSpecialFolderLocation function and then I add the name of my
Program Folder and finally I remove the shortcut file (MyApplication.LNK for
example). Unfortunately it removes correctly the .LNK file but when I go
accross my start menu again, the shortcut still appear to be here. Of
course,
when I click on it, Windows tells me there's an error but the shortcut
remains
to be in my start menu until I close Explorer.exe.
Has anybody got a clue about how to tell the shell I've removed the .LNK
file,
or about how to remove a shortcut using Shell APIs.
Thanking in advance,
Arnaud Pichery - Student at the Computer Science Department of ENSEEIHT
( FRANCE )
Technical Details
Message-ID:
<6urkcf$cm0$1@front2.grolier.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1162da,5d050f9690e1d1bb,start X-Google-Attributes: gid1162da,public X-Google-Thread: 1138d9,5d050f9690e1d1bb,start X-Google-Attributes: gid1138d9,public X-Google-Thread: 113dfb,5d050f9690e1d1bb,start X-Google-Attributes: gid113dfb,public X-Google-Thread: 1053e6,5d050f9690e1d1bb,start X-Google-Attributes: gid1053e6,public X-Google-Thread: 105df1,5d050f9690e1d1bb,start X-Google-Attributes: gid105df1,public X-Google-Thread: f7033,5d050f9690e1d1bb,start X-Google-Attributes: gidf7033,public X-Google-Thread: 11100c,5d050f9690e1d1bb,start X-Google-Attributes: gid11100c,public From: "Arnaud Pichery" <aranud@mail.dotcom.fr> Subject: Properly removing shortcuts from StartMenu (C/C++) Date: 1998/09/29 Message-ID: <6urkcf$cm0$1@front2.grolier.fr> X-Deja-AN: 396123561 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Trace: front2.grolier.fr 907105487 12992 195.36.134.222 (29 Sep 1998 21:44:47 GMT) Organization: Club-Internet (France) NNTP-Posting-Date: 29 Sep 1998 21:44:47 GMT Newsgroups: comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.misc,comp.os.ms-windows.programmer.win32,fr.comp.os.ms-windows.programmation,microsoft.public.win32.programmer.gdi,microsoft.public.win32.p