New answers tagged

0

Does Windows have something that can give me a list of installed games? Nope. The closest you can get are various ways to get all executables on the machine... these include techniques like searching for *.exe in the whole filesystem (your 15 minute timeframe, by the way, suggests to me you did something very inefficient) or trawling the registry as ...


3

There's no API from Windows to specifically get installed games. However you can programmatically grab the currently installed programs: string registry_key = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; using(Microsoft.Win32.RegistryKey key = Registry.LocalMachine.OpenSubKey(registry_key)) { foreach(string subkey_name in key.GetSubKeyNames())...


1

Check the registry paths HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall and HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall. They have a sub-key for every piece of software which was installed through a common installation wizard. It doesn't separate games from other software, but when you are building a game ...



Top 50 recent answers are included