SDownload.Program.ValidateChromeInstallation C# (CSharp) Method

ValidateChromeInstallation() private method

Check for a Google Chrome installation and make sure the helper extension is installed
private ValidateChromeInstallation ( ) : void
return void
        private void ValidateChromeInstallation()
        {
            /*
            var extensionPath = Path.GetTempPath() + "..\\Google\\Chrome\\User Data\\Default\\Extensions\\";

            // Ensure the user has chrome installed
            if (!Directory.Exists(extensionPath))
            {
                var errordialog = new YesNoDialog("SDownload requires Google Chrome to be installed!", "Install", "Exit")
                                 {
                                     ResponseCallback = result =>
                                                            {
                                                                if (result)
                                                                    OpenUrlInBrowser(ChromeBrowserDownloadUrl);
                                                                Exit();
                                                            }
                                 };
                errordialog.Show();
                return;
            }

            // Parse for the text file signifying the extension is installed
            var extensionFolder = from extension in Directory.EnumerateDirectories(extensionPath)
                                  where
                                      (from version in Directory.EnumerateDirectories(extension)
                                       where (from file in Directory.EnumerateFiles(version)
                                              where file.EndsWith("sdownload.txt")
                                              select file).Any()
                                       select version).Any()
                                  select extension;

            if (extensionFolder.Any()) return;

            // Chrome extension is not installed
            var dialog =
                new YesNoDialog("SDownload requires a browser extension for Chrome in order to function properly!",
                                "Download", "Exit")
                {
                    ResponseCallback = result =>
                    {
                        if (result)
                            OpenUrlInBrowser(ChromeExtensionDownloadUrl);
                        else
                            Exit();
                    }
                };
            dialog.Show();*/
        }