18 lines
482 B
PowerShell
18 lines
482 B
PowerShell
#!/bin/pwsh
|
|
. "$PSScriptRoot/Context.ps1";
|
|
. "$PSScriptRoot/BrowserAutomation.ps1";
|
|
|
|
function Install-AmdSoftwarePackage() {
|
|
param(
|
|
[Context] $context,
|
|
[string] $url
|
|
)
|
|
|
|
$tempDir = $context.GetTempDirectory();
|
|
$selector = 'summary:first div.driver:first a:contains("Download")';
|
|
$file = Start-AutomatedDownload $context $url $selector $tempDir;
|
|
|
|
Start-Process -Wait -FilePath $file -ArgumentList "/S";
|
|
Remove-Item -Recurse $tempDir;
|
|
}
|