选择你想创建的自定义操作的类型。在本例中选择Launch an executable 这个选择项的设置依赖于在安装期间要执行的目标可执行文件的位置。因为Notepad在每台机器上都有,它是这个自定义操作的目标。
基于6个网页-相关网页
How to launch an executable on the end of installation correctly?
如何在安装结束时正确地推出一个可执行?
Now that we've packaged our application into an executable jar called ExecutableJar.jar, we can launch the application directly from the file using the following command.
既然我们已经将自己的应用程序打包到了一个名为executablejar . jar的可执行jar中了,那么我们就可以用下面的命令直接从文件启动这个应用程序。
Qprocess and QbyteArray are used to launch an external executable from Qt and grab the output from the command, but we'll come to that function shortly.
Qprocess和QbyteArray用于在Qt中运行外部的可执行文件,并抓取命令的输出,但我们很快就会讲到这个函数。
应用推荐