Skip to content

Commit 7c60d52

Browse files
committed
Fix wrong target path for start with windows feature
1 parent d5d5938 commit 7c60d52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Misc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public static void SetStartWithWindows( bool enable )
209209

210210
var shortcut = (IWshShortcut) shell.CreateShortcut( shortcutPath );
211211

212-
shortcut.TargetPath = Assembly.GetExecutingAssembly().Location;
212+
shortcut.TargetPath = Environment.ProcessPath;
213213
shortcut.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
214214
shortcut.Save();
215215
}

0 commit comments

Comments
 (0)