Finding installed games...

Started by
2 comments, last by noNchaoTic 18 years, 9 months ago
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?
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.
Well if you know the filenames of a few files from each game then just do a quick filescan.
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.
Steven ToveySPUify | Twitter

This topic is closed to new replies.

Advertisement