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安装包则不会有上述问题

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-11-28
相关资源
相似解决方案