install always the latest version

This commit is contained in:
Mylloon 2024-12-28 01:51:08 +01:00
parent c5a18436b8
commit c9eb8bb2fd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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;" ^