Browse Source

Update Download_Sophia.ps1

pull/252/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
e31dc664ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      Download_Sophia.ps1

10
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);

Loading…
Cancel
Save