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
|
2021-10-25 09:41:10 -04:00
|
|
|
LogMsg "Deleting ""${APP_PATH}"""
|
2020-08-14 14:19:37 -04:00
|
|
|
Try { Remove-Item $APP_PATH -Recurse -Force }
|
2020-11-13 09:32:19 -05:00
|
|
|
Catch { LogErr $_.Exception.Message }
|
2020-08-14 14:19:37 -04:00
|
|
|
|
2021-10-25 11:44:03 -04:00
|
|
|
} Else { LogMsg "The path specified does not exist: ${APP_PATH}" }
|