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

要打包程序,老大让一天研究完,研究了一天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)then
		if(SdLicense2("License ", "", "", SUPPORTDIR ^ "33.txt", FALSE)=NEXT)then
			if(LaunchAppAndWait(SUPPORTDIR^"setup.exe","", LAAW_OPTION_WAIT) < 0)then
			MessageBox("fail",INFORMATION);
			endif;
		endif;
	endif;

	//MessageBox("OnBegin",INFORMATION);
end;
具体参数F1,或百度。

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

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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章