diff --git a/Install-Wireguard.ps1 b/Install-Wireguard.ps1 index 761305d..4a4d258 100644 --- a/Install-Wireguard.ps1 +++ b/Install-Wireguard.ps1 @@ -6,9 +6,9 @@ If ( IsAdmin ) ## Install package $Installer = Download-File -URL $URL If ( Test-Path $Installer ) { - End-Program -Name "wireguard" -Match -Force + End-Process -Name "wireguard" -Match -Force Install-Program -Path "${Installer}" -Delete - End-Program -Name "wireguard" -Match -Force + End-Process -Name "wireguard" -Match -Force } Else { LogMsg "The Wireguard installer was not downloaded properly" } }