update to remove the process check - using Run-Script -HaltIfRunning instead

This commit is contained in:
2020-12-03 17:18:03 -05:00
parent 8b17d15196
commit 5648dc0c65
+1 -4
View File
@@ -5,10 +5,7 @@ If ( IsAdmin )
## Install package ## Install package
$Installer = Download-File -URL $URL $Installer = Download-File -URL $URL
If ( Test-Path $Installer ) { If ( Test-Path $Installer ) { Install-Program -Path "${Installer}" -Delete }
End-Process -Name "wireguard" -Match -Force
Install-Program -Path "${Installer}" -Delete
}
Else { LogMsg "The Wireguard installer was not downloaded properly" } Else { LogMsg "The Wireguard installer was not downloaded properly" }
} }
Else { LogMsg "Must be an administrator to install Wireguard" } Else { LogMsg "Must be an administrator to install Wireguard" }