Archive: Checking for the existance of registry keys?


Checking for the existance of registry keys?
I have read some things on this I am just not 100% sure how to go about it. What I am doing is looking to detect which version of office is currnetly installed. I want to to this by checking in for the InstallRoot key in the registry for excel and then check to make sure excel.exe actually exists.

I would have to look in the different versions of office the ones I have to check are Office 8, 9 , 10, and 11.

Thanks for any advice.


What is the problem, what is the question?


If the path to excel.exe is in the registry, use ReadRegStr.
Then use IfFileExists to check if the path os correct.

-Stu