////////////////////////////////////////////////////////////////////////////// // // 函数: OnFirstUIBefore // // 事件: FirstUIBefore event is sent when installation is run for the first // time on given machine. In the handler installation usually displays // UI allowing end user to specify installation parameters. After this // function returns, ComponentTransferData is called to perform file // transfer. // /////////////////////////////////////////////////////////////////////////////// function OnFirstUIBefore() NUMBER nResult,nSetupType,nOpt,svEdit1,svEdit2; STRING szTitle, szMsg,szBmpPath; STRING szLicenseFile, szQuestion; STRING szServerIP,szServerPort,szServerIPDefault,szServerPortDefault; STRING szSQLsvr,szSQLusr,szSQLpwd,svSQLsvr,svSQLusr,svSQLpwd; STRING svName, svCompany, svSerial; STRING szFile,szTargetPath,szDir,szfolder; STRING szComponents, szTargetdir; STRING szField1,szField2; STRING szDefault,svResult; OBJECT piisObj; LIST list,listStartCopy; NUMBER nLevel,nvSize; begin
szBmpPath="C:"^"temp"^"left.bmp"; DialogSetInfo (DLG_INFO_ALTIMAGE, szBmpPath, TRUE); // 设置左边的图片 //To Do: if you want to enable background, window title, and caption bar title //SetTitle( @TITLE_MAIN, 24, WHITE ); //SetTitle( @TITLE_CAPTIONBAR, 0, BACKGROUNDCAPTION ); //Enable( FULLWINDOWMODE ); //Enable( BACKGROUND ); //SetColor(BACKGROUND,RGB (0, 128, 128));
Dlg_SdStartCopy://开始复制文件 对话框 szTitle = "开始复制文件"; szMsg = "点击下一步开始复制文件"; listStartCopy = ListCreate( STRINGLIST ); ListAddString(listStartCopy,"用户名:"+svName,AFTER); ListAddString(listStartCopy,"公司名称:"+svCompany,AFTER); ListAddString(listStartCopy,"序列号:"+svSerial,AFTER); ListAddString(listStartCopy,"目标目录:"+szDir,AFTER); if (svEdit1=TRUE) then ListAddString(listStartCopy,"IP地址:"+szServerIPDefault,AFTER); ListAddString(listStartCopy,"端口号:"+szServerPortDefault,AFTER); endif; ListAddString(listStartCopy,"请确认您填写的信息,按下一步开始复制文件",AFTER); nResult = SdStartCopy( szTitle, szMsg, listStartCopy ); ListDestroy(listStartCopy); if (nResult = BACK) goto Dlg_AskText; // setup default status SetStatusWindow(0, ""); Enable(STATUSEX); StatusUpdate(ON, 100); if (svEdit1=TRUE) then CreateWebSite(szServerIPDefault,szServerPortDefault); // 开始创建 IIS 站点 endif; if (svEdit2=TRUE) then CreateVirtualDir("NetOA"); // 开始创建 IIS 站点 endif; CreateDataBase(svSQLsvr,svSQLusr,svSQLpwd); // 创建和优化数据库
return 0; end; ////////////////////////////////////////////////////////////////////////////// // // 函数: OnFirstUIAfter // // 事件: FirstUIAfter event is sent after file transfer, when installation // is run for the first time on given machine. In this event handler // installation usually displays UI that will inform end user that // installation has been completed successfully. // /////////////////////////////////////////////////////////////////////////////// function OnFirstUIAfter() STRING szTitle,szMsg1, szMsg2, szOption1, szOption2,szCmdLine; NUMBER bOpt1, bOpt2;
begin //set_vod_liveaddress();
szCmdLine = SUPPORTDIR ^"SCE10CHS.EXE"; if (LaunchAppAndWait(szCmdLine, " /q",WAIT) 0) then MessageBox ("不能安装解码程序,请联系供应商.",SEVERE); endif;