confOS/windows/installers/vencord.bat

31 lines
779 B
Batchfile
Raw Normal View History

2023-08-11 14:27:37 +02:00
@ECHO OFF
2024-01-23 14:47:24 +01:00
SETLOCAL ENABLEDELAYEDEXPANSION
2023-08-11 14:27:37 +02:00
ECHO Ferme Discord
TASKKILL /im Discord.exe /F
2023-11-05 17:30:04 +01:00
ECHO MaJ Discord
ECHO Y | winget install -he Discord.Discord
2024-01-23 14:47:24 +01:00
SET "discord_dir=%LOCALAPPDATA%\Discord"
2024-06-18 20:02:49 +02:00
ECHO Ferme Discord
TASKKILL /im Discord.exe /F
2023-08-11 14:27:37 +02:00
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;" ^
2024-01-23 14:47:24 +01:00
"Start-Process -Wait -NoNewWindow $outfile '-install', '-location !discord_dir!';" ^
"Remove-Item -Force $outfile"
2023-08-11 14:27:37 +02:00
2023-08-11 14:28:22 +02:00
IF NOT "%1"=="yes" (
2023-08-11 14:27:37 +02:00
:: Restart Discord
2024-01-23 14:47:24 +01:00
PowerShell Start-Process "!discord_dir!\app-*\Discord.exe"
2023-08-11 14:27:37 +02:00
PAUSE
)
EXIT /B