mirror of
https://github.com/Stone-Red-Code/ClipCMD.git
synced 2026-09-04 08:56:11 +02:00
Add inno setup installer script
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user