Well, then you'll have to have some sort of data structure mapping the 
installer name(s) that will be recognized with a ProductCode Guid.  You'll also 
have to provide feedback to the user if the installer name doesn't have an 
entry in your data structure that maps to a ProductCode.  And you'll need to 
ensure that all the installers "out in the wild" for that installer name have 
that ProductCode.
--
John M. Cooper

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Monday, March 26, 2012 10:35 AM
To: [email protected]
Subject: Re: [WiX-users] DTF question

Thanks for the advice, John.

It is step 2 that is potentially awkward for the use I intend. I have to be 
able to have the user of the tool enter a *name* of an installer, because 
that's all they'll know. They'd enter an MSP name, so how do I find the 
original MSI?



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 


-----Original Message-----
From: John Cooper [mailto:[email protected]]
Sent: March-23-12 4:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] DTF question

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

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

Reply via email to