mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2025-12-06 17:15:42 -08:00
Don't try to remove non-existent dir.
This commit is contained in:
@@ -596,7 +596,9 @@ public class Setup {
|
||||
protected void Uninstall() {
|
||||
Disable();
|
||||
try {
|
||||
Directory.Delete(InstallPath, true);
|
||||
if (Directory.Exists(InstallPath)) {
|
||||
Directory.Delete(InstallPath, true);
|
||||
}
|
||||
WriteLine($"HackBGRT has been removed from {InstallPath}.");
|
||||
} catch (Exception e) {
|
||||
Log($"Uninstall failed: {e.ToString()}");
|
||||
|
||||
Reference in New Issue
Block a user