From e31dc664ceb94de38cdc59e8ca0a0fa122d318fa Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Mon, 20 Sep 2021 00:34:41 +0300 Subject: [PATCH] Update Download_Sophia.ps1 --- Download_Sophia.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index 14f5b4cf..1c7c9922 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -114,9 +114,9 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber) Invoke-WebRequest @Parameters $Parameters = @{ - Path = "$DownloadsFolder\Sophia.Script.zip" + Path = "$DownloadsFolder\Sophia.Script.zip" DestinationPath = "$DownloadsFolder" - Force = [switch]::Present + Force = $true } Expand-Archive @Parameters @@ -124,12 +124,12 @@ Remove-Item -Path "$DownloadsFolder\Sophia.Script.zip" -Force Start-Sleep -Second 1 -Invoke-Item -Path "$DownloadsFolder\Sophia Script v$LatestRelease" +Invoke-Item -Path "$DownloadsFolder\Sophia Script * v$LatestStableVersion" $SetForegroundWindow = @{ Namespace = "WinAPI" - Name = "ForegroundWindow" - Language = "CSharp" + Name = "ForegroundWindow" + Language = "CSharp" MemberDefinition = @" [DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);