Example #1
0
        private string getGogGameInstallPath()
        {
            string gogId = Program.LoncherSettings.GogID;

            if (gogId is null)
            {
                return(null);
            }
            string[] locations = new string[] {
                @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" + gogId + "_is1"
                , @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + gogId + "_is1"
            };
            return(YU.GetRegistryInstallPath(locations, true));
        }
Example #2
0
        private string getSteamGameInstallPath()
        {
            string steamId = Program.LoncherSettings.SteamID;

            if (steamId is null)
            {
                return(null);
            }
            string[] locations = new string[] {
                @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App " + steamId
                , @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App " + steamId
            };
            return(YU.GetRegistryInstallPath(locations, true));
        }