Article View: borland.public.cppbuilder.nativeapi
Article #5817About HKCU & Menu item in IE & clearance code
From: Vladimir Stefanovic
Date: Tue, 05 Jul 2005 18:13
Date: Tue, 05 Jul 2005 18:13
42 lines
2569 bytes
2569 bytes
Hi, I deployed an app that: * is visible to all users, * is mainly placed in tray, * is 'one instance' app Everything of that is OK, except that I do not know how to face with this situation during uninstall. When I say uninstall I mean on BCB code that will be added to the uninstall procedure and do some clearance tasks... My app integrates in XP IE context menu via Registry entry: HKCU\Software\Microsoft\Internet Explorer\MenuExt\MyMenuItemText ... the entry should be active even when the app is closed, because selecting that menu item invokes app to run first if it was closed. As you can see, my problem is HKCU, ie. that item is only active in the current user account. That further means, if I switch to other user account and I start the uninstall process from that account, the registry entries will remain untouched by the uninstall procedure in the primary account... My question is related to technique of enabling all accounts to have that feature (context menu in IE) enabled, and not only the main one (HKCU). How can that be achieved when IE context menu item is in HKCU? Do you have some idea? I *can* programmaticaly detect the moment when the user changes and delete those Reg entries, and recreate them in the new account, but that is possible only when my app is *running* which *is* the case most of the time, but is not a must... The app can be closed, and when I switch to other user account, the WM_(QUERY)ENDSESSION can not be reached, of course... -- Best regards, Vladimir Stefanovic
Technical Details
Message-ID:
<42cacdae$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e08fff1d87029f8a,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi Subject: About HKCU & Menu item in IE & clearance code Date: Tue, 5 Jul 2005 20:13:04 +0200 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 82.117.212.65 Message-ID: <42cacdae$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1120587182 82.117.212.65 (5 Jul 2005 11:13:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail