We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d5938 commit 7c60d52Copy full SHA for 7c60d52
1 file changed
Classes/Misc.cs
@@ -209,7 +209,7 @@ public static void SetStartWithWindows( bool enable )
209
210
var shortcut = (IWshShortcut) shell.CreateShortcut( shortcutPath );
211
212
- shortcut.TargetPath = Assembly.GetExecutingAssembly().Location;
+ shortcut.TargetPath = Environment.ProcessPath;
213
shortcut.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
214
shortcut.Save();
215
}
0 commit comments