本帖最后由 abc01422 于 2013-03-07 14:55:21 编辑

解决方案 »

  1.   

    #include "ifx.h"
    #define   PROGRAMNAME   "WinPcap_4_1_2.exe"  
    export prototype MyFunction(HWND);
    function MyFunction(hMSI)
    begin
    RegDBSetDefaultRoot(HKEY_CLASSES_ROOT); if   (LaunchAppAndWait   (PROGRAMNAME,"",WAIT)   <   0)   then   
              MessageBox("失敗"+   PROGRAMNAME   +"失敗",   SEVERE);   
      endif;   end;//我寫的腳本~只有跑失敗