案1: 将快捷方式添加到“启动”文件夹 [Tasks] Name: "startupicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}";
[Icons] Name: "{userstartup}{#MyAppName}"; Filename: "{app}{#MyAppExeName}"; Tasks:desktopicon 案2:修改注册表方式
//注册表启动项
[Registry]
Root: HKLM; Subkey: "SOFTWAREMicrosoftWindowsCurrentVersionRun"; ValueType: string; ValueName: "testrun"; ValueData: "{app}{#MyAppExeName}"