A
Adam Clauss
I am needing to automate some installation tasks. I first need to determine
if there is already a version of a program installed. The program appears
in the Add/Remove Programs in control panel, and I know this is all stored
in the registry. But short of searching through the entire registry, I
cannot figure out how to locate the program.
I see that in the registry (for .msi) installs, stores something like:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9783
3EC6-ACD7-4FD2-BFAF-B57438B55C1E}
In that key contains the Uninstall string I need. However, I do not really
want to have to search the entire registry for the product. What is that
long identifier in the name? How is it determined, etc? Or is it the same
on every machine and I can hardcode it in?
if there is already a version of a program installed. The program appears
in the Add/Remove Programs in control panel, and I know this is all stored
in the registry. But short of searching through the entire registry, I
cannot figure out how to locate the program.
I see that in the registry (for .msi) installs, stores something like:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9783
3EC6-ACD7-4FD2-BFAF-B57438B55C1E}
In that key contains the Uninstall string I need. However, I do not really
want to have to search the entire registry for the product. What is that
long identifier in the name? How is it determined, etc? Or is it the same
on every machine and I can hardcode it in?