Files
management-scripts/Remove-DeltekVision.ps1
T

12 lines
496 B
PowerShell
Raw Normal View History

2020-11-13 09:32:19 -05:00
## Stop the DeltekVision process
End-Process -Name "DeltekVision" -Force
2020-08-14 14:19:37 -04:00
## Test to make sure it's installed for the current user before continuing
2021-10-25 11:39:05 -04:00
$APP_PATH = "${Env:UserProfile}\AppData\Local\Apps\2.0"
If ( Test-Path $APP_PATH ) {
2020-08-14 14:19:37 -04:00
## Delete the existing installed app
2023-10-05 13:11:38 -04:00
Write-Output "Deleting ""${APP_PATH}"""
2020-08-14 14:19:37 -04:00
Try { Remove-Item $APP_PATH -Recurse -Force }
2023-10-05 13:17:18 -04:00
Catch { Write-Error $_.Exception.Message }
2020-08-14 14:19:37 -04:00
2023-10-05 13:11:38 -04:00
} Else { Write-Output "The path specified does not exist: ${APP_PATH}" }