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