Jump to content
  • Advertisement
Sign in to follow this  
Kryptus

Finding installed games...

This topic is 4730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!