![](/img/trans.png)
[英]Inno Setup's installer doesn't require admin rights after uploading and downloading cycle
[英]Provide Startup path when making installer with inno setup
我正在使用Inno setup使我的 exe 可安装。 我使用它的向导来创建运行良好的设置,但我想让用户选择在 Windows 启动时安装它。 我该怎么做? 然后我按照评论的建议得到了这个链接,但我无法理解! 我只想要简单的用户界面,无需用户手动工作。
要在用户登录时启动应用程序,请使用[Registry]
部分中的条目向Software\\Microsoft\\Windows\\CurrentVersion\\Run
注册表项添加一个条目。
另请参阅@jachgate对Inno Setup, APP start When windows start的回答。
不要使用[Icons]
,这是一个遗留解决方案。
要允许用户选择是否配置自动启动,请将[Registry] entry
与任务关联,例如:
[Tasks]
Name: startup; Description: "Start application when user logs in"
[Registry]
Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; \
ValueName: "MyProgram"; ValueData: "{app}\MyProg.exe"; Tasks: startup
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.