only create shortcut if it doesn't exist
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
$SHORTCUT_PATH = "${Env:Public}\Desktop\Deltek Vision.lnk"
|
||||||
|
If ( -not (Test-Path $SHORTCUT_PATH) ) {
|
||||||
If ( $VisionURL ) {
|
If ( $VisionURL ) {
|
||||||
|
|
||||||
## Get the path to a compatible browser
|
## Get the path to a compatible browser
|
||||||
@@ -20,9 +22,11 @@ If ( $VisionURL ) {
|
|||||||
|
|
||||||
## Create the shortcut
|
## Create the shortcut
|
||||||
If ( $BROWSER_PATH ) {
|
If ( $BROWSER_PATH ) {
|
||||||
|
|
||||||
LogMsg "Installing Deltek Vision using ${APP_NAME}"
|
LogMsg "Installing Deltek Vision using ${APP_NAME}"
|
||||||
Create-Shortcut -Path "${Env:Public}\Desktop\Deltek Vision.lnk" -TargetPath $BROWSER_PATH -Arguments $VisionURL -Description "Launch Deltek Vision"
|
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 { LogMsg "A compatible browser could not be found: ${BROWSER_PATH}" }
|
||||||
}
|
}
|
||||||
Else { LogMsg "No URL to Deltek Vision was specified!" }
|
Else { LogMsg "No URL to Deltek Vision was specified!" }
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user