Enumerate every component on the system with MsiEnumComponents. For each component, get a list of the client ProductCode guids with MsiEnumClients, keeping in mind that there could be multiple products.
I don't think there's a shorter way. Phil Wilson ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 28, 2007 2:24 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] identify the product code of an existing installation Is it possible to determine the product code (if any) for an arbitrary file that resides on the system? The idea would be to offer to uninstall the application that lives in a given directory using msiexec /x{product-code} ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users