Fix selector of download button for AMD drivers

This commit is contained in:
Manuel Thalmann 2023-07-15 20:32:43 +02:00
parent e57b8293c2
commit 981e6d739c

View file

@ -9,7 +9,7 @@ function Install-AmdSoftwarePackage() {
)
$tempDir = $context.GetTempDirectory();
$selector = 'summary:first div.driver:first a:contains("Download")';
$selector = '.os-group:first-of-type .driver:first-of-type a:first-of-type';
$file = Start-AutomatedDownload $context $url $selector $tempDir;
Start-Process -Wait -FilePath $file -ArgumentList "/S";