...but if you mean the installed data about the components, I think you need to use MsiEnumComponents() and then for each component guid you can use MsiEnumClients to find out which product guids they belong to (they may be shared between several).
MsiGetComponentPath() will give you the path (may be a registry key). The component APIs are dependent on the component keypath. If there is no keypath you won't get anything for a component; if there are multiple items in a component you get only the keypath one. In other words if you're looking for a complete inventory then you are unlikely to get one. I wouldn't recommend locating the cached package and enumerating the components there (and then seeing where they are installed). If I remember correctly, it doesn't include any patches (they are separately cached). Phil -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Friday, March 29, 2013 8:09 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] obain the name of components using msi/wix functions "Name"? You mean like the "Component/@Id"? That is basically an internal implementation detail. You'd have to open the MSI and query the table to get it. All the MSI APIs for talking about installed products use the "Component/@Guid". On Fri, Mar 29, 2013 at 7:54 AM, Sean Farrow <sean.far...@seanfarrow.co.uk>wrote: > Hi all, > > I need to access the name of the components installed for a specific > product. > I've already got the products enumerated. What I need now is to > enumerate the components and obtain the name of each component. > Any help appreciated. > Regards > Sean. > > ---------------------------------------------------------------------- > -------- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise > to greatness in Intel's independent game demo contest. Compete for > recognition, cash, and the chance to get your game on Steam. > $5K grand prize plus 10 genre and skill prizes. Submit your demo by > 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users