confOS/windows/vencord_installer.bat

20 lines
588 B
Batchfile

@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"=="yes" (
:: Restart Discord
"%LOCALAPPDATA%\Discord\Update.exe"
PAUSE
)
EXIT /B