This commit is contained in:
2020-07-31 18:48:18 -04:00
parent f82c27049f
commit 8423c760f8
+4 -1
View File
@@ -19,6 +19,9 @@ If ( Test-Path $APP_PATH )
Write-Output "Deltek Vision was successfully uninstalled."
}
## Remove the existing shortcut
If ( Test-Path "${Env:UserProfile}\Desktop\Deltek Vision.lnk" ) { Remove-Item -Path "${Env:UserProfile}\Desktop\Deltek Vision.lnk" -Force }
## Get the correct path to IE
If ( Test-Path "${Env:ProgramFiles(x86)}" ) { $IEPATH = "${Env:ProgramFiles(x86)}\Internet Explorer\iexplore.exe" }
Else { $IEPATH = "${Env:ProgramFiles(x86)}\Internet Explorer\iexplore.exe" }
@@ -27,7 +30,7 @@ Else { $IEPATH = "${Env:ProgramFiles(x86)}\Internet Explorer\iexplore.exe" }
If ( Test-Path $IEPATH )
{
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("${Env:UserProfile}\Desktop\Deltek Vision 3.lnk")
$Shortcut = $WshShell.CreateShortcut("${Env:UserProfile}\Desktop\Deltek Vision.lnk")
$Shortcut.Arguments = 'https://dbia.deltekfirst.com/DBIAClient/DeltekVision.application'
$Shortcut.Description = "Launch Deltek Vision"
$Shortcut.IconLocation = "${IEPATH}, 0"