最近做一个项目的CI,需要在Windows批处理脚本中调用InstallShield生成安装包。
InstallShield提供的命令行调用一般如下:
ISCmdBld.exe -p <project file name> -a<product configuration> -r <release name>
下面是实际使用的一个样例:
set IShieldPath="C:\Program Files(x86)\InstallShield\2011\System" set InstallProject=C:\MyApp.ism set SingleEXEReleaseProjectName=SINGLE_EXE_IMAGE %IShieldPath%\ISCmdBld.exe -p "%InstallProject%" -r "%SingleEXEReleaseProjectName%"
原文:http://www.cnblogs.com/fascool/p/5051576.html