diff --git a/lib/PuppeteerSharp/BrowserFetcher.cs b/lib/PuppeteerSharp/BrowserFetcher.cs index 0b9059da8..4a5b780f5 100644 --- a/lib/PuppeteerSharp/BrowserFetcher.cs +++ b/lib/PuppeteerSharp/BrowserFetcher.cs @@ -248,7 +248,7 @@ private async Task DownloadAsync(SupportedBrowser browser, str var outputPath = cache.GetInstallationDir(browser, Platform, buildId); - if (new DirectoryInfo(outputPath).Exists) + if (new FileInfo(GetExecutablePath(buildId)).Exists) { var existingBrowser = new InstalledBrowser(cache, browser, buildId, Platform); existingBrowser.PermissionsFixed = RunSetup(existingBrowser);