要打包程序,老大讓一天研究完,研究了一天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