diff --git a/Project-Aurora/Aurora-LogiLEDWrapper/Aurora-LogiLEDWrapper.rc b/Project-Aurora/Aurora-LogiLEDWrapper/Aurora-LogiLEDWrapper.rc index b69a1cf1c..8962fd685 100644 Binary files a/Project-Aurora/Aurora-LogiLEDWrapper/Aurora-LogiLEDWrapper.rc and b/Project-Aurora/Aurora-LogiLEDWrapper/Aurora-LogiLEDWrapper.rc differ diff --git a/Project-Aurora/Project-Aurora/Profiles/Evolve/Control_Evolve.xaml.cs b/Project-Aurora/Project-Aurora/Profiles/Evolve/Control_Evolve.xaml.cs index 16acd18dd..acc4ee802 100644 --- a/Project-Aurora/Project-Aurora/Profiles/Evolve/Control_Evolve.xaml.cs +++ b/Project-Aurora/Project-Aurora/Profiles/Evolve/Control_Evolve.xaml.cs @@ -39,11 +39,7 @@ private void SetSettings() private void patch_button_Click(object sender, RoutedEventArgs e) { - ProcessStartInfo startInfo = new ProcessStartInfo(); - startInfo.FileName = @"Aurora.exe"; - startInfo.Arguments = @"-install_logitech"; - startInfo.Verb = "runas"; - Process.Start(startInfo); + Program.InstallLogitech(); } private void game_enabled_Checked(object sender, RoutedEventArgs e) diff --git a/Project-Aurora/Project-Aurora/Profiles/GTA5/Control_GTA5.xaml.cs b/Project-Aurora/Project-Aurora/Profiles/GTA5/Control_GTA5.xaml.cs index 934883109..f8f89fd6d 100644 --- a/Project-Aurora/Project-Aurora/Profiles/GTA5/Control_GTA5.xaml.cs +++ b/Project-Aurora/Project-Aurora/Profiles/GTA5/Control_GTA5.xaml.cs @@ -95,11 +95,7 @@ private void patch_button_Click(object sender, RoutedEventArgs e) { try { - ProcessStartInfo startInfo = new ProcessStartInfo(); - startInfo.FileName = @"Aurora.exe"; - startInfo.Arguments = @"-install_logitech"; - startInfo.Verb = "runas"; - Process.Start(startInfo); + Program.InstallLogitech(); } catch (Exception exc) { diff --git a/Project-Aurora/Project-Aurora/Profiles/TheDivision/Control_TheDivision.xaml.cs b/Project-Aurora/Project-Aurora/Profiles/TheDivision/Control_TheDivision.xaml.cs index 3329842d4..3c0245e6e 100644 --- a/Project-Aurora/Project-Aurora/Profiles/TheDivision/Control_TheDivision.xaml.cs +++ b/Project-Aurora/Project-Aurora/Profiles/TheDivision/Control_TheDivision.xaml.cs @@ -28,11 +28,7 @@ private void SetSettings() private void patch_button_Click(object sender, RoutedEventArgs e) { - ProcessStartInfo startInfo = new ProcessStartInfo(); - startInfo.FileName = @"Aurora.exe"; - startInfo.Arguments = @"-install_logitech"; - startInfo.Verb = "runas"; - Process.Start(startInfo); + Program.InstallLogitech(); } private void UserControl_Loaded(object sender, RoutedEventArgs e) diff --git a/Project-Aurora/Project-Aurora/Program.cs b/Project-Aurora/Project-Aurora/Program.cs index 9648eedd3..fd25eac64 100644 --- a/Project-Aurora/Project-Aurora/Program.cs +++ b/Project-Aurora/Project-Aurora/Program.cs @@ -368,7 +368,7 @@ private static void CurrentDomain_UnhandledException(object sender, UnhandledExc Exit(); } - private static void InstallLogitech() + public static void InstallLogitech() { //Check for Admin bool isElevated; @@ -457,7 +457,7 @@ private static void InstallLogitech() Global.logger.LogLine("Logitech LED SDK patched successfully", Logging_Level.Info); System.Windows.MessageBox.Show("Logitech LED SDK patched successfully"); - Environment.Exit(0); + //Environment.Exit(0); } static void OnProcessExit(object sender, EventArgs e) diff --git a/Project-Aurora/Project-Aurora/Settings/Control_Settings.xaml.cs b/Project-Aurora/Project-Aurora/Settings/Control_Settings.xaml.cs index 70a9f7463..49b8e5732 100644 --- a/Project-Aurora/Project-Aurora/Settings/Control_Settings.xaml.cs +++ b/Project-Aurora/Project-Aurora/Settings/Control_Settings.xaml.cs @@ -841,11 +841,7 @@ private void wrapper_install_logitech_Click(object sender, RoutedEventArgs e) { try { - ProcessStartInfo startInfo = new ProcessStartInfo(); - startInfo.FileName = @"Aurora.exe"; - startInfo.Arguments = @"-install_logitech"; - startInfo.Verb = "runas"; - Process.Start(startInfo); + Program.InstallLogitech(); } catch (Exception exc) {