InstallScript嵌套MSI

InstallShield2008环境

写一个批处理

//start.bat

//start.bat和scite-2.21.msi在同一目录中

@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
start %~dp0\scite-2.21.msi
pause

//start.bat,scite-2.21.msi和setup.exe在同一目录中

InstallScript中

LaunchAppAndWait(SRCDIR ^ start.bat,"",WAIT);

上述方法不好,无法等待MSI安装结束,且bat执行过程中会弹cmd。

用msiexec.exe执行MSI安装包则不会有上述问题

原文地址:https://www.cnblogs.com/BeyondTechnology/p/1864025.html