… suggested Adrian, of “Text Mode drivers and Sysprep” fame, in response to the “A script to list out the Add/Remove Program entries” post.

Yes, that would work as well.


You’d need to pipe the output of the WMIC Product command into a file, or write a WMI query on the product class. 

You’d need to be aware that there are some “gotta’s” with that though.  The Product class is not query optimized.  And, Microsoft has expanded the Product class over time.  Which is to say, if you’re expect to see a field like InstallSource, it didn’t exist until Windows Vista.

Further reading:
June 2010: Some example queries for WMI and WMIC