diff --git a/windows/installers/captvty.bat b/windows/installers/captvty.bat index 58cd19c..c0d2e51 100644 --- a/windows/installers/captvty.bat +++ b/windows/installers/captvty.bat @@ -2,7 +2,10 @@ ECHO Captvty... PowerShell -Command "" ^ - "$link = 'https://releases.captvty.fr/e8b155a18563a5537711da7a4bd5559ba4898f9e/captvty-3.0.1.10.zip';" ^ + "$ie = New-Object -com internetexplorer.application;" ^ + "$ie.navigate('https://v3.captvty.fr/');" ^ + "while ($ie.Busy -eq $true) { Start-Sleep -Milliseconds 1000 };" ^ + "$link = $ie.Document.getElementsByClassName('zip')[0].getAttribute('href');" ^ "$archive = '%TEMP%\captvty.zip';" ^ "Invoke-WebRequest -UserAgent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0' -Uri $link -OutFile $archive;" ^ "Remove-Item '%LOCALAPPDATA%\Captvty' -Recurse -ErrorAction SilentlyContinue;" ^