diff --git a/StageManager/AutoStart.cs b/StageManager/AutoStart.cs index 9c601cb..39c4ba1 100644 --- a/StageManager/AutoStart.cs +++ b/StageManager/AutoStart.cs @@ -24,6 +24,6 @@ public static void SetStartup(string appName, bool startup) private static string GetValueAsString(RegistryKey key, string appName) => key.GetValue(appName)?.ToString() ?? ""; - private static string GetAppPath() => $"\"{Assembly.GetEntryAssembly().Location}\""; + private static string GetAppPath() => $@"""{Environment.ProcessPath}"""; } }