1、LaunchAppAndWait函数的第三个参数:传入LAAW_OPTION_HIDDEN即给示隐藏窗口
2、The LaunchApplication function launches and optionally waits for the specified application.
LaunchApplication uses either the Windows API function CreateProcess or the Windows API function ShellExecuteEx (if nOptions includes LAAW_OPTION_USE_SHELLEXECUTE) to launch the specified application. After the application is launched, if the LAAW_OPTION_WAIT option is specified, the installation calls WaitForApplication to wait for the application to terminate; once the process has completed or the specified timeout value has elapsed, the installation continues.
Syntax
LaunchApplication( byval string szProgram, byval string szCmdLine, byval string szDirectory, byval number nShowWindow, byval number nTimeOut, byval number nOptions );
Parameters
LaunchApplication Parameters
Parameter
Description
szProgram
Specifies the complete path and file name of the application to be launched.
If nOptions does not include LAAW_OPTION_USE_SHELLEXECUTE, you can instead specify the file name of the application to be launched in the szCmdLine parameter; if you do so, pass an empty string ("") in the szProgram parameter.
The szProgram parameter does not support URLs.
szCmdLine
Specifies the command-line parameters to pass to the launched application. To launch the application with no command-line parameters, pass a null string ("").
If nOptions does not include LAAW_OPTION_USE_SHELLEXECUTE, you can also specify the file name of the ap