如何制作允许用户在安装后运行应用程序的复选框。
答案 0 :(得分:38)
你去了:
[Run]
下的:
Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent
[CustomMessages]
下的:
AppName=mySoftwaresNiceName
LaunchProgram=Start mySoftware after finishing installation
答案 1 :(得分:14)
检查[运行]部分中的postinstall标志,请参阅http://www.jrsoftware.org/ishelp/topic_runsection.htm#postinstall
上的文档答案 2 :(得分:9)
使用标志postinstall将文件名添加到Run Section。
复制和粘贴示例:
[Run]
// User selected... these files are shown for launch after everything is done
Filename: {app}\README.TXT; Description: View the README file; Flags: postinstall shellexec skipifsilent
Filename: {app}\APP.EXE; Description: Run Application; Flags: postinstall nowait skipifsilent unchecked
答案 3 :(得分:7)
要创建复选框,请创建一个任务:
[Tasks]
Name: StartAfterInstall; Description: Run application after install
并将其绑定到“运行”操作:
[Run]
Filename: {app}\{#exe}; Flags: shellexec skipifsilent nowait; Tasks: StartAfterInstall
其中{#exe}是exe文件的名称