?
Solved

Where is MsiGetComponentPath?

Posted on 2004-09-24
9
Medium Priority
?
493 Views
Last Modified: 2013-12-03
I am trying to use MsiGetComponentPath.  All the docs claim that it is exported through msi.lib.  I did a dumpin /exports msi.lib, and this api function is not in that library.  Anybody know where this function is defined?  Thanks
0
Comment
Question by:mromeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 12148124
It is declared in msi.h and resides in msi.lib (see the API docs at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/msigetcomponentpath.asp). "dumpbin" won't help you here, since the latter is a library, use 'lib.exe' to examine it's contents.
0
 

Author Comment

by:mromeo
ID: 12159566
What option of lib.exe do you use to examine a library?  I've never used lib.exe for this purpose before.  Thanks.
0
 

Author Comment

by:mromeo
ID: 12159630
According to the docs, you can use DUMPBIN to look at the symbols defined in a library.  If I use "dumpbin /linkermember msi.lib," I get all the symbols in the lib. I see all the other Msi lib functions, just not MsiGetComponentPath.  It goes from MsiGetActiveDatabase to MsiGetComponentState.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 86

Expert Comment

by:jkr
ID: 12161656
That's strange. MSI.DLL however has it:

C:\WINDOWS\system32>dumpbin /exports msi.dll | grep Path
        172   4E 00022950 MsiGetComponentPathA
        173   4F 000081B4 MsiGetComponentPathW

You might need to update your SDK.
0
 

Author Comment

by:mromeo
ID: 12161711
Does your msi.lib have it?  My dll has it, but my .lib does not?  How can I tell what version of the SDK I have?
0
 
LVL 86

Expert Comment

by:jkr
ID: 12161748
No, mine does not have it either. Did you get the MSI SDK from MSDN?
0
 

Author Comment

by:mromeo
ID: 12161813
I'm going to assume that mine is the version that came with Visual Studio.  I am running VC++ 6.0 Enterprise Edition.  I haven't updated it in quite a while.  It's in the VC98\lib folder and is 86K (88,000 bytes) and size on disk is 90,112 bytes.  Creation date is May 13, 1998.
0
 
LVL 86

Accepted Solution

by:
jkr earned 800 total points
ID: 12161873
0
 

Author Comment

by:mromeo
ID: 12162053
Great!  I had the new Core SDK, but needed to install the Windows Installer SDK.  That gave me what I needed....Thanks!!!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question