用installshield部署安装程序,因为我们的程序可能会用到framework2.0,Microsoft WSE 3.0等组件,所以必须要一起部署,然后把这些组件全部安装一遍,我把那些文件全部放在prepare这个文件夹中,但是不知道怎么直接在installscript中去添加他,然后挨个安装其中的组件,请指教,或者提供下installscript基本语法的资料也好,先拜谢了

解决方案 »

  1.   

    installshield基础
      

  2.   

    Installshield2010实现web部署和数据库
      

  3.   

    检测并安装framework和crystal report
        RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE ); 
    if (RegDBKeyExist ("SOFTWARE\\Microsoft\\.NETFramework\\policy\\v2.0" ) != 1) then 
       if (LaunchAppAndWait(SUPPORTDIR ^ "dotnetfx.exe", "", WAIT) < 0) then 
          MessageBox(".Net FrameWork 2.0安装出错!",WARNING);       
       endif;
    endif; 
    RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE ); 
    if (RegDBKeyExist ("SOFTWARE\\Crystal Decisions\\10.2\\Crystal Reports" ) != 1) then 
        if (LaunchAppAndWait(WINSYSDIR^"msiexec.exe","/i"+ SUPPORTDIR^"CRRedist2005_x86.msi", WAIT) < 0) then 
          MessageBox("Crystal Report for .Net FrameWork安装出错!",WARNING);       
       endif;
    endif; 
    注意:拷贝文件、framework和crystal report的安装文件 放在Installation Designer——Behavior and Logic——Support Files/Billboards——support Files——Language Independent下。