🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Bruce Henderson Wed, 14 May 2003 16:02
MsiGetShortcutTarget
#16383
Author: Bruce Henderson
Date: Wed, 14 May 2003 16:02
6 lines
1156 bytes
The MSDN talks about using MsiGetShortcutTarget and MsiGetComponentPath for
resolving MS Office App Links.

Borland C++ Builder version 6.0 doesn't seem to recoginize either one.

Is there a way to use these API functions in C++ Builder?
Re: MsiGetShortcutTarget
#16385
Author: Remy Lebeau (TeamB)
Date: Wed, 14 May 2003 16:35
13 lines
1386 bytes
"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
Re: MsiGetShortcutTarget
#16393
Author: Bruce Henderson
Date: Wed, 14 May 2003 19:31
38 lines
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
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads