activex 控件制作成cab包的問題
更新時(shí)間:2007年01月03日 00:00:00 作者:
我的控件是自己寫的,現(xiàn)在需要把它做成.cab包,以使其可以在客戶端自動(dòng)下載注冊(cè)。我只知道使用cabarc.exe這個(gè)工具。但是不知道怎么寫inf文件,怎么加入證書。
ActiveX發(fā)布步驟:
創(chuàng)建PVK文件[私人密匙文件]
makecert -sk DigitalTitan DigitalTitan.pvk
makecert -n CN=TelStar TelStar
創(chuàng)建CER文件[公司證書]
makecert -sk DigitalTitan.pvk TelStar.cer
創(chuàng)建SPC測試軟件出版商證明書
cert2spc root.cer TelStar.cer TelStar.spc
創(chuàng)建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
創(chuàng)建CAB文件
cabarc -s 6144 n WebOffice.cab mfc70.dll msvcrt.dll olepro32.dll ASYCFILT.DLL STDOLE2.TLB WebOffice.ocx WebOffice.inf
使用Code Signing Wizard簽署一個(gè)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發(fā)布工具下載地址
打包工具包:
申請(qǐng)證書:Win2000:控制面板-管理工具-證書頒發(fā)機(jī)構(gòu)[沒有則更新組件]Http://127.0.0.1/CertSrv/
簽名工具包:http://download.microsoft.com/download/b/e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe
ActiveX發(fā)布步驟:
創(chuàng)建PVK文件[私人密匙文件]
makecert -sk DigitalTitan DigitalTitan.pvk
makecert -n CN=TelStar TelStar
創(chuàng)建CER文件[公司證書]
makecert -sk DigitalTitan.pvk TelStar.cer
創(chuàng)建SPC測試軟件出版商證明書
cert2spc root.cer TelStar.cer TelStar.spc
創(chuàng)建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
創(chuàng)建CAB文件
cabarc -s 6144 n WebOffice.cab mfc70.dll msvcrt.dll olepro32.dll ASYCFILT.DLL STDOLE2.TLB WebOffice.ocx WebOffice.inf
使用Code Signing Wizard簽署一個(gè)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發(fā)布工具下載地址
打包工具包:
申請(qǐng)證書:Win2000:控制面板-管理工具-證書頒發(fā)機(jī)構(gòu)[沒有則更新組件]Http://127.0.0.1/CertSrv/
簽名工具包:http://download.microsoft.com/download/b/e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe
相關(guān)文章
雙擊桌面IE圖標(biāo)出現(xiàn)打開方式的問題的解決方法
雙擊桌面IE圖標(biāo)出現(xiàn)打開方式的問題的解決方法...2007-08-08硬盤分區(qū)之整數(shù)G計(jì)算公式 附在線計(jì)算工具
硬盤分區(qū)之整數(shù)G計(jì)算公式 附在線計(jì)算工具...2006-10-10JS擴(kuò)展Z-Blog圖片驗(yàn)證碼的單擊自動(dòng)刷新與評(píng)論內(nèi)容自動(dòng)保存
JS擴(kuò)展Z-Blog圖片驗(yàn)證碼的單擊自動(dòng)刷新與評(píng)論內(nèi)容自動(dòng)保存...2007-03-03Macromedia Captivate影片中完美加入閃吧版權(quán)信息
Macromedia Captivate影片中完美加入閃吧版權(quán)信息...2007-02-02XP/win2003下發(fā)現(xiàn)1G的內(nèi)存比512M還慢的解決方法
XP/win2003下發(fā)現(xiàn)1G的內(nèi)存比512M還慢的解決方法...2007-11-11