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