@ECHO OFF ECHO Captvty... PowerShell -Command "" ^ "$link = 'https://releases.captvty.fr/e8b155a18563a5537711da7a4bd5559ba4898f9e/captvty-3.0.1.10.zip';" ^ "$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;" ^ "Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\Captvty' -Force;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Captvty.lnk');" ^ "$Shortcut.TargetPath = '%LOCALAPPDATA%\Captvty\Captvty.exe';" ^ "$Shortcut.Save();" ^ "Remove-Item -Force $archive" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\captvty" /f /v DisplayName /t REG_SZ /d "Captvty" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\captvty" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Captvty" IF NOT "%1"=="yes" PAUSE EXIT /B