Sign in to follow this  
Kryptus

Finding installed games...

Recommended Posts

I'm trying to write a small application at the moment that detects your computer for different games, in my case its Half-Life 2, BF1942 and BF2, but because users put these products into different directories and such, how do I find out where they are? Is the a key in the registry with all this or do I have to manually search for the files and compare or something?

Share this post


Link to post
Share on other sites
You could look for registry keys (e.g. HKLM\SOFTWARE\Valve\Steam\Half-Life and such), or you could look up the registered programs that were installed with MSI, which I have no idea how to do. [google] is your friend here.

Share this post


Link to post
Share on other sites
Best way is a combination of the two, check for the registry key and then use that installation directory key from the result to check for the file's existance. This way both bases are covered.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this