Solved

Where is MsiGetComponentPath?

Posted on 2004-09-24
9
480 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

733 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