Add a timeout for the reWASD downloader

This commit is contained in:
Manuel Thalmann 2024-08-18 09:05:04 +02:00
parent 5a6d46153f
commit 1c3bffce42

View file

@ -11,7 +11,7 @@ Start-SoftwareInstaller @PSBoundParameters `
-Installer { -Installer {
Write-Host "Downloading reWASD…"; Write-Host "Downloading reWASD…";
$dir = New-TemporaryDirectory; $dir = New-TemporaryDirectory;
$file = Start-BrowserDownload -URL "https://rewasd.com/" -ButtonSelector 'a.btn-default[href="#"]' -OutDir $dir; $file = Start-BrowserDownload -URL "https://rewasd.com/" -ButtonSelector 'a.btn-default[href="#"]' -OutDir $dir -Timeout 1;
Write-Host "Installing reWASD…"; Write-Host "Installing reWASD…";
Start-Process -Wait -FilePath $($file.FullName) -ArgumentList "/S"; Start-Process -Wait -FilePath $($file.FullName) -ArgumentList "/S";