OCX调用dll打成cab包时候inf文件编写
2015-04-12 23:08
363 查看
动态库:kdm_dll.dll
ocx控件:UnionKdm.ocx
inf文件:UnionKdm.inf
其中inf文件编写方式格式如下:
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[DefaultInstall]
CopyFiles=InstallFilesSection,InstallInfSection
RegisterOCXs=RegisterOCXSection
[DefaultUninstall]
cleanup=1
Delfiles=UnionKdm.ocx
[RegisterOCXSection]
"%11%/UnionKdm.ocx"
[UnRegisterOCXSection]
"%11%/UnionKdm.ocx"
[InstallFilesSection]
kdm_dll.dll=kdm_dll.dll
UnionKdm.ocx=UnionKdm.ocx
[InstallInfSection]
UnionKdm.inf=UnionKdm.inf
[kdm_dll.dll]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
[UnionKdm.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={2369022F-A16C-497A-865A-6064BF366A56}
FileVersion=1,0,0,1
DestDir=InstallFilesSection
[DestinationDirs]
InstallFilesSection=11
打包cab包,注册控件:
1.cabarc n useKdmForJava.cab useKdmForJava.inf useKdmForJava.ocx kdm_dll.dll
2.makecert /sv "useKdmForJava.pvk" /n "cn=useKdmForJava" -$ "individual" -r useKdmForJava.cer
3.cert2spc useKdmForJava.cer useKdmForJava.spc
4.signcode signwizard
注:创建pvk文件时,在makecert 中加上-$ "individual" -r,进行signcode时选择md5,就可以解决!
ocx控件:UnionKdm.ocx
inf文件:UnionKdm.inf
其中inf文件编写方式格式如下:
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[DefaultInstall]
CopyFiles=InstallFilesSection,InstallInfSection
RegisterOCXs=RegisterOCXSection
[DefaultUninstall]
cleanup=1
Delfiles=UnionKdm.ocx
[RegisterOCXSection]
"%11%/UnionKdm.ocx"
[UnRegisterOCXSection]
"%11%/UnionKdm.ocx"
[InstallFilesSection]
kdm_dll.dll=kdm_dll.dll
UnionKdm.ocx=UnionKdm.ocx
[InstallInfSection]
UnionKdm.inf=UnionKdm.inf
[kdm_dll.dll]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
[UnionKdm.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={2369022F-A16C-497A-865A-6064BF366A56}
FileVersion=1,0,0,1
DestDir=InstallFilesSection
[DestinationDirs]
InstallFilesSection=11
打包cab包,注册控件:
1.cabarc n useKdmForJava.cab useKdmForJava.inf useKdmForJava.ocx kdm_dll.dll
2.makecert /sv "useKdmForJava.pvk" /n "cn=useKdmForJava" -$ "individual" -r useKdmForJava.cer
3.cert2spc useKdmForJava.cer useKdmForJava.spc
4.signcode signwizard
注:创建pvk文件时,在makecert 中加上-$ "individual" -r,进行signcode时选择md5,就可以解决!
相关文章推荐
- 将ocx和DLL文件打包成cab文件,inf的编写
- OCX制作CAB(三) -- INF文件的编写及WEB JS 调用OCX和CAB
- 存储过程调用C#编写的DLL文件
- ATL编写的控件中动态调用加载dll文件,并调用函数
- 将ocx和DLL文件打包成cab文件,IE浏览器在线安装
- 用C/C++编写与调用动态链接库(DLL)文件
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- JNI 使用总结 (JAVA 调用C语言编写的DLL/SO/SL文件)
- 用C/C++编写与调用动态链接库(DLL)文件
- active 控件(ocx和dll)的编写和调用。
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- atl-ActiveX-dll-inf-cab-web调用(总结篇)
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- 在C#.net中调用VC 6.0编写的DLL文件
- windows下的动态链接问题(.dll文件的编写与调用)
- java调用CC++编写的DLL文件问题
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- 将ocx和DLL文件打包成cab文件,实现IE浏览器在线安装
- 22.Silverlight使用WebService调用C++,Delphi编写的DLL文件