registry

How do I read and export a subtree of Windows registry without running Regedit?

I have a 32-bit C++ program that gathers diagnostic data to help troubleshoot our software. I'd like it to export a certain subtree of the registry - something like: regedit.exe /e ExportResult.reg HKEY_LOCAL_MACHINE\SubTreeIWantToExport The problem is Regedit will likely require priviledges elevation on Vista and above and the user r...

How to get list of installed applications using Ruby in Windows?

I Know using wmi query "WIN32_product" one can read the list of installed applications but the list is different from add/remove program list under control panel. Another approach would be to read Software\Microsoft\Windows\CurrentVersion\Uninstall in windows registry? I am using the following few lines of ruby code to do that but it is...

How to remove a single registry VALUE at uninstall of an MSI?

There is a particular registry value that my application sometimes creates during execution, i.e. NOT at installation. This value is within a registry key that I don't want to delete; I just want to delete the value that I created. Because it's not created at install it's not automatically deleted at uninstall by windows installer. What ...