日期:2010-09-07  浏览次数:21099 次

   6.3版好象是用事件驱动的:
  //////////////////////////////////////////////////////
  //
  // 函数: 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.
  //
  //////////////////////////////////////////////////////
  
  OnFirstUIBefore()是在某台电脑上第一次运行安装时执行.
  
  //////////////////////////////////////////////////////
  //
  // 函数: 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.
  //
  //////////////////////////////////////////////////////
  OnFirstUIAfter()在文件复制结束后运行.

   下面是建立Web文件和设置的例子需VBS文件(有虚拟目录设置,但没有权限设置).
  
  ////////////////////////////////////////////////////////////////////////////////
  //
  // IIIIIII SSSSSS
  // II SS InstallShield (R)
  // II SSSSSS (c) 1996-1999, InstallShield Software Corporation
  // II SS (c) 1990-1996, InstallShield Corporation
  // IIIIIII SSSSSS All Rights Reserved.
  //
  //
  // This code is generated as a starting setup template. You should
  // modify it to provide all necessary steps for your setup.
  //
  //
  // 文件名: Setup.rul
  //
  // 描述: InstallShield script
  //
  // 注释: This template script performs a basic setup. With minor
  // modifications, this template can be adapted to create
  // new, customized setups.
  //
  ////////////////////////////////////////////////////////////////////////////////
  
  
  // 包含的头文件
  
  #include "ifx.h" //不能移动
  
  ////////////////////// string defines ////////////////////////////
  
  //////////////////// installation declarations ///////////////////
  
  // ----- DLL function prototypes -----
  
  
  // your DLL function prototypes
  
  // ---- script function prototypes -----
  
  
  // your script function prototypes
  prototype CHK_serial(STRING,STRING);
  prototype RegODBC(STRING);
  prototype set_vod_liveaddress();
  // your global variables
  STRING szvodservername;
  STRING szliveservername;
  
  
  //////////////////////////////////////////////////////////////////////////////
  //
  // 函数: 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;
  STRING szTitle, szMsg;
  STRING szLicenseFile, szQuestion;
  STRING svNam