diff --git a/RetroBar/PropertiesWindow.xaml.cs b/RetroBar/PropertiesWindow.xaml.cs index fa5b0a52..7d666973 100644 --- a/RetroBar/PropertiesWindow.xaml.cs +++ b/RetroBar/PropertiesWindow.xaml.cs @@ -119,8 +119,7 @@ private void AutoStartCheckBox_OnChecked(object sender, RoutedEventArgs e) } else { - string exePath = System.Reflection.Assembly.GetExecutingAssembly().Location; - rKey?.SetValue("RetroBar", exePath); + rKey?.SetValue("RetroBar", ExePath.GetExecutablePath()); } } catch (Exception exception)