Solved

Where is MsiGetComponentPath?

Posted on 2004-09-24
9
467 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

11 Experts available now in Live!

Get 1:1 Help Now