From b34a0304d4b74513a2f093f72b0a81c683e1723d Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sun, 31 Dec 2023 17:08:15 +0300 Subject: [PATCH] fixed incorrect temp folder path #545 --- run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.ps1 b/run.ps1 index 59874604..27f43750 100644 --- a/run.ps1 +++ b/run.ps1 @@ -263,7 +263,7 @@ $spotifyDirectory = Join-Path $env:APPDATA 'Spotify' $spotifyDirectory2 = Join-Path $env:LOCALAPPDATA 'Spotify' $spotifyExecutable = Join-Path $spotifyDirectory 'Spotify.exe' $exe_bak = Join-Path $spotifyDirectory 'Spotify.bak' -$spotifyUninstall = Join-Path $env:TEMP 'SpotifyUninstall.exe' +$spotifyUninstall = Join-Path ([System.IO.Path]::GetTempPath()) 'SpotifyUninstall.exe' $start_menu = Join-Path $env:APPDATA 'Microsoft\Windows\Start Menu\Programs\Spotify.lnk' $upgrade_client = $false @@ -581,7 +581,7 @@ if (Test-Path -Path $hostsFilePath) { } # Unique directory name based on time -Push-Location -LiteralPath $env:TEMP +Push-Location -LiteralPath ([System.IO.Path]::GetTempPath()) New-Item -Type Directory -Name "SpotX_Temp-$(Get-Date -UFormat '%Y-%m-%d_%H-%M-%S')" | Convert-Path | Set-Location if ($premium) {