Solved

Where is MsiGetComponentPath?

Posted on 2004-09-24
9
469 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C#: need to import an entire CSV file 4 51
Problem to adjust sheet 1 85
Explain Unit of Work pattern 2 55
Visual Studio: built-in keystroke automation 2 46
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now