Browse Source

Update Download_Sophia.ps1

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

9
Download_Sophia.ps1

@ -20,6 +20,7 @@ if ($Wrapper)
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
$Parameters = @{
Path = "$DownloadsFolder\Sophia.Script.Wrapper.zip"
@ -27,6 +28,14 @@ if ($Wrapper)
Force = $true
}
Expand-Archive @Parameters
Remove-Item -Path "$DownloadsFolder\Sophia.Script.Wrapper.zip" -Force
Start-Sleep -Second 1
Invoke-Item -Path "$DownloadsFolder\Sophia Script Wrapper v$LatestStableVersion"
exit
}
switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)

Loading…
Cancel
Save