diff --git a/Install-Wireguard.ps1 b/Install-Wireguard.ps1 index 2762a05..6c83a51 100644 --- a/Install-Wireguard.ps1 +++ b/Install-Wireguard.ps1 @@ -5,10 +5,7 @@ If ( IsAdmin ) ## Install package $Installer = Download-File -URL $URL - If ( Test-Path $Installer ) { - End-Process -Name "wireguard" -Match -Force - Install-Program -Path "${Installer}" -Delete - } + If ( Test-Path $Installer ) { Install-Program -Path "${Installer}" -Delete } Else { LogMsg "The Wireguard installer was not downloaded properly" } } Else { LogMsg "Must be an administrator to install Wireguard" } \ No newline at end of file