chocolatey/chocolatey — pull request #99 by rismoney (2012-06-05 14:58:51+00:00)
Title: create function to extract product code from MSI file db

DO NOT ACCEPT this pull request. Would prefer to discuss storing guids.

* current this only returns productcode.
* intended usage to safestore productcode in \lib or config file
* safestore to be used by uninstaller for guranteed removal

This should be run and ultimately safestore $productCode during the chocolatey install process to guarantee a future opposite capability. The alternative to this is to guess at productname/ids based upon $package/$packagenames which might not align. This addresses issue like notepad++ vs notepadplusplus or similar parsing uncertainties.