update
This commit is contained in:
@@ -19,6 +19,9 @@ If ( Test-Path $APP_PATH )
|
|||||||
Write-Output "Deltek Vision was successfully uninstalled."
|
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
|
## Get the correct path to IE
|
||||||
If ( Test-Path "${Env:ProgramFiles(x86)}" ) { $IEPATH = "${Env:ProgramFiles(x86)}\Internet Explorer\iexplore.exe" }
|
If ( Test-Path "${Env:ProgramFiles(x86)}" ) { $IEPATH = "${Env:ProgramFiles(x86)}\Internet Explorer\iexplore.exe" }
|
||||||
Else { $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 )
|
If ( Test-Path $IEPATH )
|
||||||
{
|
{
|
||||||
$WshShell = New-Object -ComObject WScript.Shell
|
$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.Arguments = 'https://dbia.deltekfirst.com/DBIAClient/DeltekVision.application'
|
||||||
$Shortcut.Description = "Launch Deltek Vision"
|
$Shortcut.Description = "Launch Deltek Vision"
|
||||||
$Shortcut.IconLocation = "${IEPATH}, 0"
|
$Shortcut.IconLocation = "${IEPATH}, 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user