Article View: borland.public.cppbuilder.nativeapi
Article #16393Re: MsiGetShortcutTarget
From: Bruce Henderson
Date: Wed, 14 May 2003 19:31
Date: Wed, 14 May 2003 19:31
38 lines
2337 bytes
2337 bytes
Borland has a "msi.h" that contains the Microsoft Installer SDK version 1.0
definitions for MsiGetComponentPathA and MsiGetComponentPathW.
According to the MSDN, MsiGetShortcutTarget requries Microsoft Installer SDK
version 1.1 or later.
I ended up going back to the IShellLink functions to get it to work.
Figuring out how to resolve the MS Office App Shortcuts was difficult, but
in the end it turned out to be pretty simple. Once you get a pidl from
GetIDList, you call SHGetPathFromIDList(pidl, target).
hres = pShLink->GetIDList(&pidl);
if (SUCCEEDED(hres))
{
SHGetPathFromIDList(pidl, target);
}
Thanks for your help!
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3ec26fc2$1@newsgroups.borland.com...
>
> "Bruce Henderson" <Bruce@CreativeControlSystems.com> wrote in message
> news:3ec268a0$1@newsgroups.borland.com...
> > The MSDN talks about using MsiGetShortcutTarget
> > and MsiGetComponentPath for resolving MS Office App Links.
>
> Where do you see that exactly? Neither of those are API functions. Those
> are scripting functions available only to MSI (Microsoft Installer)
scripts.
> For API programming, using the IShellLink interface is the correct way to
> go.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3ec299be@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec268a0$1@newsgroups.borland.com> <3ec26fc2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a68dcf67c008f0e0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-14 12:40:47 PST From: "Bruce Henderson" <Bruce@CreativeControlSystems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec268a0$1@newsgroups.borland.com> <3ec26fc2$1@newsgroups.borland.com> Subject: Re: MsiGetShortcutTarget Date: Wed, 14 May 2003 14:31:45 -0500 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 216.202.195.25 Message-ID: <3ec299be@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052940734 216.202.195.25 (14 May 2003 12:32:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail