Skip to content

Commit

Permalink
v4.9.1
Browse files Browse the repository at this point in the history
- Powertoys.exe will now be expected to close
  • Loading branch information
caglaryalcin committed Aug 2, 2024
1 parent 4dc2bab commit eebf2d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resume.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,15 @@ Function InstallSoftwares {
Remove-Job -Job $job

# Kill the processes of power toys
taskkill.exe /f /im "PowerToys*" *>$null

$processName = "PowerToys*"
while ($true) {
Start-Sleep -Seconds 2
$process = Get-Process -Name $processName -ErrorAction SilentlyContinue
if ($process) {
Stop-Process -Id $process.Id -Force
break
}
}
}

InstallSoftwares
Expand Down

0 comments on commit eebf2d3

Please sign in to comment.