Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Inno setup 成功安装后运行应用程序_Inno Setup - Fatal编程技术网

Inno setup 成功安装后运行应用程序

Inno setup 成功安装后运行应用程序,inno-setup,Inno Setup,如何设置允许用户在安装后运行应用程序的复选框?检查[run]部分中的postinstall标志,请参阅中的文档: 在[Run]下: Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent 在[CustomMessages]下: AppName=mySoftwaresNiceName LaunchProgram=

如何设置允许用户在安装后运行应用程序的复选框?

检查
[run]
部分中的
postinstall
标志,请参阅中的文档:


[Run]
下:

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

[CustomMessages]
下:

AppName=mySoftwaresNiceName
LaunchProgram=Start mySoftware after finishing installation

要选中此复选框,请创建一个任务:

[Tasks]
Name: StartAfterInstall; Description: Run application after install
并将其绑定到“运行”操作:


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

使用POSTNSTALL标志将文件名添加到运行部分

复制和粘贴示例:

[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

我该怎么做:AppName.exe argument1 argument2?请另外提问please@Akku我在AppName中提供了我的应用程序名,但它给我的错误是我的播放器名不正确defined@Mohammad这个问题不是关于自定义常量的,所以如果你有一个新问题,请写一个新问题,并提供关于你的问题的更多信息。
[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