kill wireguard before and after install

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