szParam = "";
LaunchAppAndWait(szProgram, szParam, LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
- 通过Custom Action Wizard添加一个CA,启动向导
- 在Basic Information界面中为CA命名
- 在Action Type界面中指定Type为Launch an Executable;Location选择Stored in the Directory table
- 在Action Parameters界面中,Source选择INSTALLDIR,Target中输入内容:"[SystemFolder]cmd.exe" /c "[INSTALLDIR]Sample.bat"
- Additional Options界面默认
- 在Respond Options界面中,In-Script Execution选择Deferred Execution
- 在Insert into Sequence界面中,将CA插入到InstallFinalize之前,并设定Install Execute Condition为:Not Installed
- 其余默认