Checked if uninstaller removed its directory. (#2078)

This commit is contained in:
Vladimir Chebotarev
2018-03-12 18:54:58 +01:00
committed by Richard Kuhnt
parent 31075f6200
commit 4d956c2e30
+4 -2
View File
@@ -73,8 +73,10 @@ $apps | ForEach-Object {
try {
Remove-Item -r $dir -ea stop -force
} catch {
error "Couldn't remove '$(friendly_path $dir)'; it may be in use."
continue
if(test-path $dir) {
error "Couldn't remove '$(friendly_path $dir)'; it may be in use."
continue
}
}
# remove older versions