[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Where is MsiGetComponentPath?

Posted on 2004-09-24
9
Medium Priority
?
504 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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 …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

649 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