13 lines
609 B
PowerShell
13 lines
609 B
PowerShell
## 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 ) {
|
|
## 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!" }
|