用NSIS打包程序,如何实现等待一个程序执行完,再继续执行?

来源:百度知道 编辑:UC知道 时间:2024/06/04 20:05:50
现在的情况是
在安装过程中 设置一些初始的信息
想实现弹出一DIALOG 在其中填写一些内容后 按确定或者取消才继续执行

能不能实现?如何实现?

你没看帮助文档吗?
用ExecWait就行了
例如:ExecWait '"$INSTDIR\someprogram.exe"'

作者文档:
Execute the specified program and wait for the executed process to quit. See Exec for more information. If no output variable is specified ExecWait sets the error flag if the program executed returns a nonzero error code, or if there is an error. If an output variable is specified, ExecWait sets the variable with the exit code (and only sets the error flag if an error occurs; if an error occurs the contents of the user variable are undefined). Note, if the command could have spaces, you should put it in quotes to delimit it from parameters. e.g.: ExecWait '"$INSTDIR\command.exe" parameters'. If you don't put it in quotes it will not work on Windows 9x with or without parameters.