Fix KillProcess()
This commit is contained in:
parent
033a4fa843
commit
cab76871f2
2 changed files with 2 additions and 3 deletions
|
@ -378,8 +378,7 @@ function KillProcess {
|
||||||
)
|
)
|
||||||
Write-Host -NoNewLine "`tKilling $($params.name) : "
|
Write-Host -NoNewLine "`tKilling $($params.name) : "
|
||||||
try {
|
try {
|
||||||
$p = Get-Process $process
|
Stop-Process $(Get-Process $params.name)
|
||||||
Stop-Process $p | Out-Null
|
|
||||||
Write-Host -ForegroundColor Green "Done"
|
Write-Host -ForegroundColor Green "Done"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"action" : "KillProcess",
|
"action" : "KillProcess",
|
||||||
"name" : "explorer.exe"
|
"name" : "explorer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_comment" : "OneDrive Uninstaller x64 version",
|
"_comment" : "OneDrive Uninstaller x64 version",
|
||||||
|
|
Reference in a new issue