18 lines
490 B
PowerShell
18 lines
490 B
PowerShell
#!/bin/pwsh
|
|
. "$PSScriptRoot/Context.ps1";
|
|
. "$PSScriptRoot/BrowserAutomation.ps1";
|
|
|
|
function Install-AmdSoftwarePackage() {
|
|
param(
|
|
[Context] $context,
|
|
[string] $url
|
|
)
|
|
|
|
$tempDir = $context.GetTempDirectory();
|
|
$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";
|
|
Remove-Item -Recurse $tempDir;
|
|
}
|