From f006e0300b2ae458e37ab3d65302b4a900d8c2d0 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Mon, 8 May 2023 16:22:11 +0300 Subject: [PATCH] Update Download_Sophia.ps1 --- Download_Sophia.ps1 | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index 7bd4f9da..372a5388 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -31,18 +31,7 @@ $Parameters = @{ } $LatestGitHubRelease = (Invoke-RestMethod @Parameters).tag_name -if ((Get-Location).Path -eq $env:USERPROFILE) -{ - $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -} -elseif ((Get-Location).Path -eq "$env:SystemRoot\System32") -{ - $DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -} -else -{ - $DownloadsFolder = (Get-Location).Path -} +$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" if ($Wrapper) {