Installshield集成第三方安装包并使用脚本安装

来源:互联网 发布:婚纱软件下载 编辑:程序博客网 时间:2024/04/29 06:21

要打包程序,老大让一天研究完,研究了一天Installshield,基本折腾会了。

由于在安装过程中要不断的调用第三方程序安装驱动,所有要把第三方程序集成到安装包里。

将需要安装的程序添加到【Behavior and logic】 -> 【Support Files】 -> 【Language Independent】中

使用SUPPORTDIR获取路径,如:

LaunchAppAndWait(SUPPORTDIR^"setup.exe","", LAAW_OPTION_WAIT)
这样就可以启动该程序了

function OnBegin()begin// TO DO: you may change default non-UI setting, for example//// You may also perform your custom initialization steps, check requirements, etc.if(!MAINTENANCE)thenif(SdLicense2("License ", "", "", SUPPORTDIR ^ "33.txt", FALSE)=NEXT)thenif(LaunchAppAndWait(SUPPORTDIR^"setup.exe","", LAAW_OPTION_WAIT) < 0)thenMessageBox("fail",INFORMATION);endif;endif;endif;//MessageBox("OnBegin",INFORMATION);end;
具体参数F1,或百度。

基本的使用网上很多教程,这篇写的很详细

http://www.cnblogs.com/Cindy_weiwei/archive/2009/05/18/1459542.html



原创粉丝点击