Dmitry Nefedov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
12 deletions
-
Download_Sophia.ps1
|
@ -31,18 +31,7 @@ $Parameters = @{ |
|
|
} |
|
|
} |
|
|
$LatestGitHubRelease = (Invoke-RestMethod @Parameters).tag_name |
|
|
$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}" |
|
|
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
$DownloadsFolder = (Get-Location).Path |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($Wrapper) |
|
|
if ($Wrapper) |
|
|
{ |
|
|
{ |
|
|