Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno-Setup: how to let the user choose whether to autostart or not?

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?

like image 483
acme Avatar asked Apr 26 '12 14:04

acme


1 Answers

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
like image 184
acme Avatar answered Oct 18 '22 08:10

acme