Inno Setup 设置开机启动

案1:
将快捷方式添加到“启动”文件夹
[Tasks]
Name: "startupicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}";
[Icons]
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:desktopicon



案2:修改注册表方式 

//注册表启动项 
[Registry] 
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "testrun"; ValueData: "{app}\{#MyAppExeName}" 
posted @ 2017-09-22 15:53  风来风往风伤(TiAmo)  阅读(4208)  评论(0编辑  收藏  举报