Add inno setup installer script

This commit is contained in:
Stone_Red
2023-11-22 17:14:45 +01:00
parent 21e50c4f0e
commit 6439c9c4bb
3 changed files with 59 additions and 0 deletions
+8
View File
@@ -1,4 +1,5 @@
using System;
using System.IO;
using System.Threading;
using System.Windows;
@@ -26,6 +27,8 @@ public partial class App : Application
Current.Shutdown();
}
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Exit += CloseHandler;
}
@@ -33,4 +36,9 @@ public partial class App : Application
{
mutex?.ReleaseMutex();
}
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
File.WriteAllText("error.log", e.ExceptionObject.ToString());
}
}