[wpkg-users] how to get msi GUUID to the clipboard

Malte Starostik lists at malte.homeip.net
Wed Jan 18 16:28:04 CET 2012


Hi Urs,

different approach and maybe overkill for your case (in fact, I'll have a look 
at the script you linked).  Anyway: for all such MSI-related stuff I use the 
wonderful utility InstEd http://www.instedit.com/ (no, I'm not affiliated ;))
Besides editing MSIs iff you know what you're doing, it allows you to view all 
the tables, including "Property" which contains the ProductCode and you can 
copy the value from within insted.

Now, after a quick glance over the page describing MSIInfo.js I guess you 
could run it from a console via cscript instead of wscript to get the output 
into the console from where you can copy:

cscript /nologo PATH\TO\MSIInfo.js PATH\TO\installer.msi

Cheers,
Malte

Am Mittwoch, 18. Januar 2012, 16:18:33 schrieb Urs Rau (UK):
> Hi Guys,
> 
> I often need to get a msi's file's Product codeGUUID to copy to a wpkg xml
> install or remove line. Now I have found a nice utility written in js,
> just like wpkg, that does this very efficiently on a right click menu, the
> only problem left is the output in the window is not selectable to copy to
> the clipboard. And I don't like typing in GUUIDs from a screen window
> manually.
> 
> Any "js" coder here that can tell me how to create a window displaying the
> answer in such a way that it can be selected and copied to the clipboard
> or alternatively write the msi info into a file called
> <msiprogram>.msinfo.txt ?
> 
> The original code is available from
> http://www.windowsitpro.com/article/deployment/get-information-about-msi-f
> iles-with-just-a-few-clicks
> 
> The original author of MSIInfo.js and MSIInfo-Context.js is Bill Stewart
> (bstewart at iname.com<mailto:bstewart at iname.com>)
> 
> Thanks.
> 
> 
> --
> Urs Rau
> 
> 
> ________________________________
> Operation Mobilisation (OM) - a company limited by guarantee - The Quinta,
> Weston Rhyn, Oswestry, SY10 7LT, United Kingdom Company reg no: 2564320
> (England & Wales) - Charity reg. no: 1008196 (England & Wales) - SC040988
> (Scotland) Web: http://www.uk.om.org




More information about the wpkg-users mailing list