According to this question I know how to put an application in the autostart folder without user interaction. But how can I let user decide if he wants that or not via checkbox?
Asked
Active
Viewed 3,271 times
1 Answers
14
Thanks to TLama and some more googling I did it like this:
[Tasks]
Name: startup; Description: "Automatically start on login"; GroupDescription: "{cm:AdditionalIcons}"
[Icons]
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: startup

acme
- 14,654
- 7
- 75
- 109
-
+1, your solution is definitely better! Working with a scripting part of InnoSetup a lot I'm loosing the contact with the built-in features. Maybe you may accept your post instead ;-) – TLama Apr 27 '12 at 07:24
-
Ok, TLama :-) I'll accept it tomorrow (it's still locked). But thanks nevertheless for pointing me in the right direction! – acme Apr 27 '12 at 08:30
-
You're welcome! I'll delete my post from here to not mislead the others with a unnecessarily complicated solution ;-) – TLama Apr 27 '12 at 15:11
-
4Name: "startup"; Description: "{cm:AutoStartProgram,{#MyAppName}}" to use translated text – OCTAGRAM Oct 10 '15 at 22:34