major update to override Write-Output func
This commit is contained in:
+2
-2
@@ -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" }
|
||||
Reference in New Issue
Block a user