2016-10-20 154 views
0

我使用Inno setup使我的exe可以安装。我用它的向导来创建工作正常的设置,但是我想让用户选择在Windows启动时安装它。我怎样才能做到这一点?然后我got this link as comment suggested但我无法理解它!我只想为用户提供简单的界面,无需用户手动工作。使用inno安装程序提供安装程序时提供启动路径

+1

[创新安装,APP开始当窗口开始](HTTP的可能重复: //stackoverflow.com/questions/13244181/inno-setup-app-start-when-windows-start) – demonplus

+0

我需要编码吗?哪里可以找到完整的tut? –

+0

您不需要代码部分即可在Windows启动时启动应用程序。您是否阅读了我给予链接的问题的答案? – demonplus

回答

0

要在用户登录时启动应用程序,请使用[Registry] section中的条目将条目添加到Software\Microsoft\Windows\CurrentVersion\Run注册表项中。

另请参阅answer by @jachguateInno Setup, APP start When windows start

不要使用[Icons],这是一个传统的解决方案。


为了允许用户选择是否配置自动开始,[Registry] entrytask关联,如:

[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 
相关问题