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


Vote Up
0
Vote Down

Open in the Regex Tester


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
5/24/2014 12:37:12 AM


2 comments so far.
Log in to leave a comment.

Rodney Rich said on 5/24/2014 12:43:48 AM
Note to people accessing this library for the first time. Replacement (transform) regex items like this one don't display the replacement regex string until you select open in Regex Tester above.

Rodney Rich said on 5/24/2014 12:50:21 AM
If anyone knows how to code the regex above such that each character doesn't have to be coded for individually yet will still receive it'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't give each one it's own group number. Any ideas?



<< back to Library