confOS/windows/vencord_installer.bat
2024-01-23 08:42:05 +01:00

23 lines
598 B
Batchfile

@ECHO OFF
ECHO Ferme Discord
TASKKILL /im Discord.exe /F
ECHO MaJ Discord
ECHO Y | winget install -he Discord.Discord
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;" ^
"Start-Process -NoNewWindow $outfile '-install'"
IF NOT "%1"=="yes" (
:: Restart Discord
PowerShell Start-Process "%LOCALAPPDATA%\Discord\app-*\Discord.exe"
PAUSE
)
EXIT /B