Closed AppleMangoOrange closed 2 years ago
What's the wrong path it uses now? What's the correct path?
Currently it is "%localappdata%\Discordfor Discord PTB\Update.exe"
Whereas it should be "%localappdata%\DiscordPTB\Update.exe"
It worked after I made this change in the batch file
Current script's start
(edit: and TASKKILL
s) command is indeed wrong. Here it is, freshly downloaded:
@echo off
C:\Windows\System32\TASKKILL.exe /f /im Discordfor Discord PTB.exe
C:\Windows\System32\TASKKILL.exe /f /im Discordfor Discord PTB.exe
C:\Windows\System32\TASKKILL.exe /f /im Discordfor Discord PTB.exe
C:\Windows\System32\TIMEOUT.exe /t 5 /nobreak
copy /y "%localappdata%\DiscordPTB\app-1.0.1013\resources\app.asar" "%localappdata%\DiscordPTB\app-1.0.1013\resources\app.asar.backup"
powershell -Command "Invoke-WebRequest https://github.com/GooseMod/OpenAsar/releases/download/nightly/app.asar -OutFile \"$Env:LOCALAPPDATA\DiscordPTB\app-1.0.1013\resources\app.asar\""
start "" "%localappdata%\Discordfor Discord PTB\Update.exe" --processStart Discordfor Discord PTB.exe
goto 2>nul & del "%~f0"
Fixed
Installing for Discord PTB directs it to the wrong path. It should be corrected in the batch file.