How to get uninstall key from registry
I have an installer for my application.
The application can be installed multiple times in different locations. :eek: (sad but true)
The uninstall key (HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\<registered name>) is variable.
The <registered name> is provided by the user on install.
It means that <registered name> can be almost anything.
So in the registry the can be entries like this:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Test_for_Admin
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Performance_test
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Release_version_1
And they each point to a different install location. But inside each install location there are the same files. (and also the same un-installer)
But the name of the location has (usually) a different name:
C:\Program Files\Testing\App1\
C:\Program Files\Testing\App2\
D:\Program Files\MyCompany\MyApp_1.0.0
How can I find the correct uninstal reg key for a specific installation.
(Installer started from C:\Program Files\Testing\App1\ points to reg key HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Test_for_Admin)
Regards
Johan