Transforms uninstall registry subkey GUID for MS products to retrieve install registry entry subkey


0
When processing MS product uninstall keys in the registry to determine all installed MS products, some subkeys in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall are GUIDS. They can be identified by subjecting each subkey to the regex \{[a-fA-F\d]{8}-[a-fA-F\d]{4}-[a-fA-F\d]{4}-[a-fA-F\d]{4}-[a-fA-F\d]{12}\} and when the regex matches, the info about the actual install file and its location must be found in another registry path using a manipulated version of the GUID found. The actual install data in question is located in HKLM\Software\Classes\Installer\Products\<some 32 char subkey name derived from the uninstall GUID subkey name>. The replacement regex set given here will give you the needed transform of the GUID.
Rodney Rich
05/24/2014 00:37:12


2 comments so far.
Rodney Rich said on 05/24/2014 00:43:48
Note to people accessing this library for the first time. Replacement (transform) regex items like this one don&#39;t display the replacement regex string until you select open in Regex Tester above.

Rodney Rich said on 05/24/2014 00:50:21
If anyone knows how to code the regex above such that each character doesn&#39;t have to be coded for individually yet will still receive it&#39;s own group number, please enlighten me. I tried a lot of things but I am still pretty new to coding regular expressions. ([A-F\d]) finds all characters but doesn&#39;t give each one it&#39;s own group number. Any ideas?



<< back to Library