what is the best method to let the user check a checkbox in my application that turns autostarting the app on windows start on and off?
Ie there should be a checkbox in the app, when it is on the app will start on windows starting, if it is off it should not start automatically.
I guess it involves setting/removing some registry keys (which ones?), or is there a simpler way?
Also it should start to Notify Icon if started automatically, but it should start "regularly" if started by double clicking the exe (no autostart) - can the app know the difference, ie if started automatically or by clicking the exe?