From c5a18436b82204d52dc802ce409e83ab1a0eca2e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 28 Dec 2024 01:33:59 +0100 Subject: [PATCH] Add captvty installer --- windows/installers/captvty.bat | 19 +++++++++++++++++++ windows11.bat | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 windows/installers/captvty.bat diff --git a/windows/installers/captvty.bat b/windows/installers/captvty.bat new file mode 100644 index 0000000..58cd19c --- /dev/null +++ b/windows/installers/captvty.bat @@ -0,0 +1,19 @@ +@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 diff --git a/windows11.bat b/windows11.bat index 64eec04..252ef7f 100644 --- a/windows11.bat +++ b/windows11.bat @@ -291,6 +291,11 @@ PowerShell -Command "" ^ "$Shortcut.Save()" +:: === Captvty == +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/captvty.bat -OutFile '%TEMP%\captvty.bat'" +CMD /c "%TEMP%\captvty.bat" yes + + :: === Drivers notice == ECHO Installs drivers, for a list of drivers, use UserDiag https://userdiag.com/download ECHO For GPU driver uninstallation, use DDU. For NVidia GPU driver isntallation, use NVC.