From dadb94dd8391504cd489fe297a8caf4b3c668f33 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 1 Oct 2024 20:25:06 +0200 Subject: [PATCH] don't delete icon with "yes" parameter --- windows/installers/spotify.bat | 10 +++++----- windows/installers/vencord.bat | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/windows/installers/spotify.bat b/windows/installers/spotify.bat index d4f2f5d..86bbc4d 100644 --- a/windows/installers/spotify.bat +++ b/windows/installers/spotify.bat @@ -24,12 +24,12 @@ PowerShell -Command "" ^ "Remove-Item -LiteralPath $patchedFiles;" ^ "Start-Process -WorkingDirectory $dir -FilePath $exe" -:: Delete newly created Spotify shortcut -DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL -ie4uinit -show -ECHO Remove the desktop shortcut - IF NOT "%1"=="yes" ( + :: Delete newly created Spotify shortcut + DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL + ie4uinit -show + ECHO Remove the desktop shortcut + :: Restart Spotify PowerShell -Command "" ^ "$dir = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^ diff --git a/windows/installers/vencord.bat b/windows/installers/vencord.bat index 46fc369..20a966d 100644 --- a/windows/installers/vencord.bat +++ b/windows/installers/vencord.bat @@ -23,12 +23,12 @@ PowerShell -Command "" ^ "Start-Process -Wait -NoNewWindow '!vencord!' '-install', '-location !discord_dir!';" ^ "Remove-Item -Force '!vencord!'" -:: Delete newly created Discord shortcut -DEL %HOMEPATH%\Desktop\Discord.lnk 2>NUL -ie4uinit -show -ECHO Remove the desktop shortcut - IF NOT "%1"=="yes" ( + :: Delete newly created Discord shortcut + DEL %HOMEPATH%\Desktop\Discord.lnk 2>NUL + ie4uinit -show + ECHO Remove the desktop shortcut + :: Restart Discord PowerShell Start-Process "!discord_dir!\app-*\Discord.exe"