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
+4 -4
View File
@@ -1,7 +1,7 @@
$SHORTCUT_PATH = "${Env:Public}\Desktop\Deltek Vision.lnk"
# Remove the shortcut if it already exists
If ( Test-Path $SHORTCUT_PATH ) { LogMsg "Removing existing shortcut: ${SHORTCUT_PATH}" ; Remove-Item $SHORTCUT_PATH }
If ( Test-Path $SHORTCUT_PATH ) { Write-Output "Removing existing shortcut: ${SHORTCUT_PATH}" ; Remove-Item $SHORTCUT_PATH }
# If the shortcut doesn't exist
If ( -not (Test-Path $SHORTCUT_PATH) ) {
@@ -28,10 +28,10 @@ If ( -not (Test-Path $SHORTCUT_PATH) ) {
## Create the shortcut
If ( $BROWSER_PATH ) {
LogMsg "Installing Deltek Vision for ${APP_NAME}"
Write-Output "Installing Deltek Vision for ${APP_NAME}"
Create-Shortcut -Path "${Env:Public}\Desktop\Deltek Vision.lnk" -TargetPath $BROWSER_PATH -Arguments $VisionURL -Description "Launch Deltek Vision"
}
Else { LogMsg "A compatible browser could not be found: ${BROWSER_PATH}" }
Else { Write-Output "A compatible browser could not be found: ${BROWSER_PATH}" }
}
Else { LogMsg "No URL to Deltek Vision was specified!" }
Else { Write-Output "No URL to Deltek Vision was specified!" }
}