Add captvty installer
This commit is contained in:
parent
d7e37c0234
commit
c5a18436b8
2 changed files with 24 additions and 0 deletions
19
windows/installers/captvty.bat
Normal file
19
windows/installers/captvty.bat
Normal file
|
@ -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
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue