Browse Source

Update Download_Latest_Sophia.ps1

master
Dmitry Nefedov 4 weeks ago
committed by GitHub
parent
commit
b4c9da153c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      Download_Latest_Sophia.ps1

4
Download_Latest_Sophia.ps1

@ -143,7 +143,8 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if (Test-Path -Path "$DownloadsFolder\SophiaScriptTemp") if (Test-Path -Path "$DownloadsFolder\SophiaScriptTemp")
{ {
Write-Verbose -Message "Please remove `"$DownloadsFolder\SophiaScriptTemp`" manually and try to use script again." -Verbose Write-Verbose -Message "Please remove `"$DownloadsFolder\SophiaScriptTemp`" manually and try to use script again." -Verbose
Remove-Item -Path "$DownloadsFolder\master.zip" -Force
pause pause
exit exit
} }
@ -151,6 +152,7 @@ if (Test-Path -Path "$DownloadsFolder\SophiaScriptTemp")
if (Test-Path -Path "$DownloadsFolder\$($Version)_Latest") if (Test-Path -Path "$DownloadsFolder\$($Version)_Latest")
{ {
Write-Verbose -Message "Please remove `"$DownloadsFolder\$($Version)_Latest`" manually and try to use script again." -Verbose Write-Verbose -Message "Please remove `"$DownloadsFolder\$($Version)_Latest`" manually and try to use script again." -Verbose
Remove-Item -Path "$DownloadsFolder\master.zip" -Force
pause pause
exit exit

Loading…
Cancel
Save