1) Enumerate the installed Product Codes; 2) Select the one of interest; 3) Enumerate the patches installed to that ProductCode; 4) Check if the patch of interest is one of the installed patches to that ProductCode.
Fast and dirty. I'm sure there are more elegant ways to get it. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 [email protected] www.jackhenry.com -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Friday, March 23, 2012 3:28 PM To: [email protected] Subject: [WiX-users] DTF question Hi everyone, I'm wanting to write a little utility to help our deployments server monitor installations. I can use the Database class on an MSI and get its productcode with an appropriate query and hence then verify that it is installed. However, MSPs don't seem so straightforward. What's a good way to, given a path to an MSP file, determine if it has been installed (i.e., the equivalent of seeing if it is visible in Programs and Features)? Assume no obvious connection between its filename and that of what it patches. Keith Douglas Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 [email protected] Telephone | Téléphone 613-951-4405 Facsimile | Télécopieur 613-951-1966 Government of Canada | Gouvernement du Canada ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

