activex 控制項製作成cab包的問題_應用技巧

來源:互聯網
上載者:User
我的控制項是自己寫的,現在需要把它做成.cab包,以使其可以在用戶端自動下載註冊。我只知道使用cabarc.exe這個工具。但是不知道怎麼寫inf檔案,怎麼加入認證。
ActiveX發布步驟:   
  建立PVK檔案[私人密匙檔案]   
  makecert   -sk   DigitalTitan   DigitalTitan.pvk   
  makecert   -n   CN=TelStar   TelStar   
  建立CER檔案[公司認證]   
  makecert   -sk   DigitalTitan.pvk   TelStar.cer   
  建立SPC測試軟體出版商證明書   
  cert2spc   root.cer   TelStar.cer   TelStar.spc   
  建立INF檔案   
  [version]   
  signature="$CHINA$"   
  AdvancedINF=2.0   
  [Add.Code]   
  WebOffice.ocx=WebOffice.ocx   
  mfc70.dll=mfc70.dll   
  msvcrt.dll=msvcrt.dll   
  olepro32.dll=olepro32.dll   
  [mfc70.dll]   
  file-win32-x86=thiscab   
  FileVersion=7,0,9466,0   
  DestDir=11   
  RegisterServer=yes   
  [msvcrt.dll]   
  file-win32-x86=thiscab   
  FileVersion=6,1,9844,0   
  DestDir=11   
  RegisterServer=yes   
  [olepro32.dll]   
  file-win32-x86=thiscab   
  FileVersion=5,0,4522,0   
  DestDir=11   
  RegisterServer=yes   
  [WebOffice.ocx]   
  file-win32-x86=http://10.70.151.253:9003/ActiveX/WebOffice.cab   
  clsid={05430EC0-69CA-437A-B1F9-4B78B8647BEA}     
  FileVersion=1,0,0,1   
  RegisterServer=yes   

  建立CAB檔案   
  cabarc   -s   6144   n   WebOffice.cab   mfc70.dll   msvcrt.dll   olepro32.dll   ASYCFILT.DLL   STDOLE2.TLB   WebOffice.ocx   WebOffice.inf   
  使用Code   Signing   Wizard簽署一個CAB檔案   
  SIGNCODE.exe   
  另:   
  makeCert   -sk   DigitalTitanKey   -n   "CN=TelStar"   -ss   TelStar   TelStar.cer   
  makecert   -is   TelStar   -ic   TelStar.cer   -ss   TelStarCompany.cer   
  Cert2SPC   MyCert.cer   MyCert.spc
ActiveX發布工具下載地址   

  打包工具包:   
  申請認證:Win2000:控制台-管理工具-憑證授權單位[沒有則更新群組件]Http://127.0.0.1/CertSrv/   
  簽名工具包:http://download.microsoft.com/download/b/e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.