From fe3c7e6cc4f884d1d3b4011848002e89cb1f3fc5 Mon Sep 17 00:00:00 2001 From: Ryan de Jonge Date: Fri, 13 May 2022 01:12:50 +0200 Subject: [PATCH] Autostart fix --- src/FlippedTaskbar11/Settings.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FlippedTaskbar11/Settings.cs b/src/FlippedTaskbar11/Settings.cs index ae1be3b..4c6d949 100644 --- a/src/FlippedTaskbar11/Settings.cs +++ b/src/FlippedTaskbar11/Settings.cs @@ -121,7 +121,10 @@ private void doSetupStuff() key.DeleteValue(REGISTRY_ITEM, false); } - key.SetValue(REGISTRY_ITEM, Assembly.GetEntryAssembly().Location); + var path = Assembly.GetEntryAssembly().Location; + if (path.EndsWith(".dll")) + path = path.Replace(".dll", ".exe"); + key.SetValue(REGISTRY_ITEM, path); } config.FirstRun = false;