Files
management-scripts/Install-DeltekVision.ps1
T

15 lines
773 B
PowerShell
Raw Normal View History

. 'C:\Users\dyoder\Emberkom\Data\Projects\development\management-scripts\Tools.ps1'
$VisionURL = 'https://dbia.deltekfirst.com/DBIAClient/DeltekVision.application'
2020-08-09 17:52:30 -04:00
## 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" }
If ( $VisionURL ) {
2020-08-09 17:52:30 -04:00
## Make sure IE exists where we expect it to
If ( Test-Path $IEPATH ) {
Create-Shortcut -Path "${Env:Public}\Desktop\Deltek Vision.lnk" -TargetPath $IEPATH -Arguments $VisionURL -Description "Launch Deltek Vision"
}
Else { LogMsg "Internet Explorer could not be found: ${IEPATH}" }
}
Else { LogMsg "No URL to Deltek Vision was specified!" }