cab and signcode

sign.bat

cabarc.exe -s 6144 N FormDesigner.CAB FormDesigner/FormDesigner.ocx FormDesigner/Msvcp60.dll FormDesigner/FormDesigner.INF
pause
signcode FormDesigner.CAB -spc Certificate/Freeborders.cer -v Certificate/Freeborders.pvk -a sha1 -t
http://timestamp.verisign.com/scripts/timstamp.dll -i www.freeborders.com -n "Form Desinger"
pause

 

 

FormDesigner.INF

; Sample INF file for FormDesigner.ocx
[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0

[Add.Code]
FormDesigner.ocx=FormDesigner.ocx
; These are the necessary supporting DLLs for MFC 4.2 ActiveX Controls
Msvcp60.dll=Msvcp60.dll
;mfc42file
mfc42.dll=mfc42.dll
msvcrt.dll=msvcrt.dll
olepro32.dll=olepro32.dll

; thiscab is a keyword which, in this case, means that Spindial.ocx
; can be found in the same .cab file as this .inf file
; file-win32-x86 is an x86 platform specific identifier
; See the ActiveX SDK - ActiveX Controls - Internet Component Download -
; Packaging component code for automatic download

; needed ocx
[FormDesigner.ocx]
file-win32-x86=thiscab
clsid={173D960C-28DA-4416-880A-CEF7489FD76E}
FileVersion=0,1,5,2
RegisterServer=yes 

; dependent DLLs
[Msvcp60.dll]
file-win32-x86=thiscab
FileVersion=6,0,0,8168
DestDir=11
RegisterServer=yes

[mfc42.dll]
FileVersion=6,00,8665,0
hook=mfc42installer


[msvcrt.dll]
FileVersion=6,00,8797,0
hook=mfc42installer

[olepro32.dll]
FileVersion=5,0,4277
hook=mfc42installer

[mfc42installer]
file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab
run=%EXTRACT_DIR%/mfc42.exe

; end of INF file

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值