成功安装后运行应用程序

问题描述:

如何使复选框允许用户在安装后运行应用程序。成功安装后运行应用程序

入住[运行]部分安装后的标志,看你走在http://www.jrsoftware.org/ishelp/topic_runsection.htm#postinstall

有文档:[CustomMessages]

Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent 


[Run]

AppName=mySoftwaresNiceName 
LaunchProgram=Start mySoftware after finishing installation 
+0

我怎么知道的事:AppName.exe参数1参数2? – YumYumYum 2014-03-18 00:43:40

+0

请提出一个单独的问题 – Akku 2014-05-26 10:55:01

+0

@Akuku我在AppName中提供我的应用程序名称,但它给我错误,我的玩家名称未定义 – 2016-10-21 07:09:20

为了使复选框,创建任务:

[Tasks] 
Name: StartAfterInstall; Description: Run application after install 

并将其绑定到 “跑” 的动作:

[Run] 
Filename: {app}\{#exe}; Flags: shellexec skipifsilent nowait; Tasks: StartAfterInstall 

其中{} #exe是EXE文件的名称

将文件名添加到带有标记postinstall的运行部分。对于复制粘贴&

例子:

[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