create a vencord installer

This commit is contained in:
Mylloon 2023-08-11 14:27:37 +02:00
parent cfc054b2f6
commit 538b1f8bcd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 28 additions and 13 deletions

View file

@ -0,0 +1,20 @@
@ECHO OFF
ECHO Ferme Discord
TASKKILL /im Discord.exe /F
ECHO Installe Vencord
PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
"$file = 'vencord.exe';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"ECHO 1| & $outfile -install"
IF NOT "%1"=="noskip" (
:: Restart Discord
"%LOCALAPPDATA%\Discord\Update.exe"
PAUSE
)
EXIT /B

View file

@ -113,20 +113,11 @@ for %%i in (!games!) do (
!pmi! %%i
)
:: Install Vencord
TASKKILL /im Discord.exe /F
PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^
"$file = 'vencord.exe';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"ECHO 1| & $outfile -install"
:: Install WSL
:: === Install WSL ==
wsl --install --no-launch
wsl --unregister Ubuntu
:: Install Geek Uninstaller
:: === Install Geek Uninstaller ==
PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^
@ -137,7 +128,7 @@ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "Geek Uninstaller"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller"
:: Install LosslessCut
:: === Install LosslessCut ==
PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^
"$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
@ -151,7 +142,7 @@ PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
:: Install DSR
:: === Install DSR ==
PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/attachments/9fa1cf45-ce58-443a-a061-596051405336 -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR';" ^
@ -204,6 +195,10 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat -OutFile '%HOMEPATH%\Documents\Local\vencord_installer.bat'"
:: === Install Vencord ==
CMD /c "%HOMEPATH%\Documents\Local\vencord_installer.bat" noskip
:: === Install OpenTabletDriver ==
:: Download