This commit is contained in:
2021-10-25 11:42:08 -04:00
parent 2cdd22d67c
commit e0939a4273
2 changed files with 8 additions and 8 deletions
+8
View File
@@ -18,6 +18,14 @@ If ( $VisionURL ) {
$APP_NAME = "Internet Explorer (x86)"
}
## Remove desktop shortcut
$SHORTCUT_PATH = "${Env:Public}\Desktop\Deltek Vision.lnk"
If ( Test-Path $SHORTCUT_PATH ) {
LogMsg "Deleting ""$SHORTCUT_PATH"""
Try { Remove-Item $SHORTCUT_PATH -Force }
Catch { LogErr $_.Exception.Message }
}
## Create the shortcut
If ( $BROWSER_PATH ) {
LogMsg "Installing Deltek Vision using ${APP_NAME}"
-8
View File
@@ -9,12 +9,4 @@ If ( Test-Path $APP_PATH ) {
Try { Remove-Item $APP_PATH -Recurse -Force }
Catch { LogErr $_.Exception.Message }
}
## Remove desktop shortcut
$SHORTCUT_PATH = "${Env:Public}\Desktop\Deltek Vision.lnk"
If ( Test-Path $SHORTCUT_PATH ) {
LogMsg "Deleting ""$SHORTCUT_PATH"""
Try { Remove-Item $SHORTCUT_PATH -Force }
Catch { LogErr $_.Exception.Message }
}