Skip to content

Commit

Permalink
Update Download_Sophia.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 authored Jul 7, 2022
1 parent c607fc5 commit ba4aac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Download_Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ switch ($Version)
}
"Windows_10_PowerShell_7"
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 10 v$LatestRelease PowerShell 7"
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 10 PowerShell 7 v$LatestRelease"
}
"Windows_11_PowerShell_5.1"
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 11 v$LatestRelease"
}
"Windows_11_PowerShell_7"
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 11 v$LatestRelease PowerShell 7"
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 11 PowerShell 7 v$LatestRelease"
}
}

Expand All @@ -238,7 +238,7 @@ if (-not ("WinAPI.ForegroundWindow" -as [type]))
}

Start-Sleep -Seconds 1

Get-Process -Name explorer | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows $([System.Environment]::OSVersion.Version.Major)"} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 5)
Expand Down

0 comments on commit ba4aac2

Please sign in to comment.