don't delete icon with "yes" parameter

This commit is contained in:
Mylloon 2024-10-01 20:25:06 +02:00
parent f91256053a
commit dadb94dd83
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 10 additions and 10 deletions

View file

@ -24,12 +24,12 @@ PowerShell -Command "" ^
"Remove-Item -LiteralPath $patchedFiles;" ^ "Remove-Item -LiteralPath $patchedFiles;" ^
"Start-Process -WorkingDirectory $dir -FilePath $exe" "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" ( 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 :: Restart Spotify
PowerShell -Command "" ^ PowerShell -Command "" ^
"$dir = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^ "$dir = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^

View file

@ -23,12 +23,12 @@ PowerShell -Command "" ^
"Start-Process -Wait -NoNewWindow '!vencord!' '-install', '-location !discord_dir!';" ^ "Start-Process -Wait -NoNewWindow '!vencord!' '-install', '-location !discord_dir!';" ^
"Remove-Item -Force '!vencord!'" "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" ( 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 :: Restart Discord
PowerShell Start-Process "!discord_dir!\app-*\Discord.exe" PowerShell Start-Process "!discord_dir!\app-*\Discord.exe"