因为我添加在自定义操作 
在安装中加进去了我要执行的exe程序文件,但是在安装中就会出错,这是怎么回事呢?

解决方案 »

  1.   

    只会打包。不过好像要把BORLAND的什么东西包括进去
      

  2.   

    http://blog.csdn.net/johnsuna下面有
      

  3.   

    看你用什么做安装的了。
    Installshield的脚本里可以加
      

  4.   

    在Installshield里:
    //运行客户端创建快捷方式
    function RunCreateShortCat()  
    STRING szPath,szFileName,svResult;  
    INT nResult;
    begin  
    szPath= TARGETDIR^"\\bin";
    szFileName="Import2OracleShortcat.exe"; 
      if (LaunchAppAndWait(szPath^szFileName ,'',WAIT)< 0) then
         MessageBox ("执行程序: Import2OracleShortcat.exe 出错!",SEVERE);
         return -1;
    endif;   
    return 1;
    end;
      

  5.   

    上面是运行刚刚安装好的Import2OracleShortcat.exe程序
    下面是运行在安装程序里的程序:
    //运行dotnetfx.exe 
    function CreateDotnet()
    STRING szPath,szFileName,svResult;  
    INT nResult;
    begin  
    szPath = SUPPORTDIR;
    szFileName="dotnetfx.exe"; 
      if (LaunchAppAndWait(szPath^szFileName ,'',WAIT)< 0) then
         MessageBox ("执行程序: dotnetfx.exe 出错!",SEVERE);
         return -1;
    endif;   
    return 1;
    end;