Dmitry Nefedov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
Download_Sophia.ps1
|
@ -20,6 +20,7 @@ if ($Wrapper) |
|
|
UseBasicParsing = $true |
|
|
UseBasicParsing = $true |
|
|
Verbose = $true |
|
|
Verbose = $true |
|
|
} |
|
|
} |
|
|
|
|
|
Invoke-WebRequest @Parameters |
|
|
|
|
|
|
|
|
$Parameters = @{ |
|
|
$Parameters = @{ |
|
|
Path = "$DownloadsFolder\Sophia.Script.Wrapper.zip" |
|
|
Path = "$DownloadsFolder\Sophia.Script.Wrapper.zip" |
|
@ -27,6 +28,14 @@ if ($Wrapper) |
|
|
Force = $true |
|
|
Force = $true |
|
|
} |
|
|
} |
|
|
Expand-Archive @Parameters |
|
|
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) |
|
|
switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber) |
|
|