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