• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
BeyondTechnology
博客园    首页    新随笔    联系   管理    订阅  订阅

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

posted @ 2010-10-29 00:21  BeyondTechnology  阅读(762)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3