diff --git a/lib/PuppeteerSharp/BrowserFetcher.cs b/lib/PuppeteerSharp/BrowserFetcher.cs index 55c1d0279..9b36fbfc1 100644 --- a/lib/PuppeteerSharp/BrowserFetcher.cs +++ b/lib/PuppeteerSharp/BrowserFetcher.cs @@ -252,7 +252,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);