major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ If ( IsAdmin )
Else { $Shortcut = "${Env:SYSTEMDRIVE}\Users\Public\Desktop\OpenVPN GUI.LNK" }
If ( Test-Path $Shortcut )
{
LogMsg "Deleting desktop shortcut: ${Shortcut}"
Write-Output "Deleting desktop shortcut: ${Shortcut}"
Try { Remove-Item $Shortcut -Force }
Catch { LogErr $_.Exception.Message }
}
}
Else { LogMsg "Must be an administrator to install OpenVPN" }
Else { Write-Output "Must be an administrator to install OpenVPN" }