本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告

戒除浮躁,读好书,交益友


我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:邢红瑞的blog
日志总数:523
评论数量:1142
留言数量:0
访问次数:9692346
建立时间:2004年12月20日




[c++]ocx如何自己指定目录 
原创空间,  软件技术,  电脑与网络

邢红瑞 发表于 2005/11/13 16:51:55

ocx经常用到第三方的库,例如boost openssl什么的,如果有其他版本的boost或者openssl已经安装到system32下面,你在安装麻烦就大了。 下面给个制定目录的例子 //这是我写的inf文件,安装到windows\systems\web_3d目录下     //其中web_3d目录为inf文件自己创建的     ;   Web_3D   ActiveX   installation     [version]     signature="$CHICAGO$"     AdvancedINF=2.0         ;installation   information   sections     [DefaultInstall]     CopyFiles=InstallFilesSection,InstallInfSection     RegisterOCXs=RegisterOCXSection         [DefaultUninstall]     ;   cleanup=1   will   cause   the   inf   file   to   be   removed     cleanup=1     Delfiles=Web_3d.dll     UnRegisterOCXs=UnRegisterOCXSection         [RegisterOCXSection]     "%11%\Web_3D\Web_3D.dll"         [UnRegisterOCXSection]     "%11%\Web_3D\Web_3D.dll"         ;files   to   be   copied   to   the   user's   machine     [InstallFilesSection]     msvcrt.dll=msvcrt.dll     mfc42.dll=mfc42.dll     olepro32.dll=olepro32.dll     ijl15.dll=ijl15.dll     WebZipFile.dll=WebZipFile.dll     Web_3D.dll=Web_3D.dll         [InstallInfSection]     Web_3D.inf=Web_3D.inf         ;source   location   for   specified   platform   version     [Web_3D.dll]     file-win32-x86=thiscab     clsid={A22FAE33-CE5A-4A2E-925E-529439AD666A}       FileVersion=1,0,0,0     RegisterServer=yes         [msvcrt.dll]     file-win32-x86=thiscab     RegisterServer=no         [mfc42.dll]     file-win32-x86=thiscab     RegisterServer=no         [olepro32.dll]     file-win32-x86=thiscab     RegisterServer=no         [ijl15.dll]     file-win32-x86=thiscab     RegisterServer=no         [WebZipFile.dll]     file-win32-x86=thiscab     RegisterServer=no         ;source   location   for   specified   platform   version     [Web_3D.inf]     file-win32-x86=thiscab     FileVersion=1,0,0,0         ;destination   directory   for   files   in   the   CopyFiles   section     [DestinationDirs]     InstallFilesSection=11,Web_3D   ;new   folder   in   windows   system   drive   (\winnt\system32)     InstallInfSection=17                     ;Windows\Inf   folder     


阅读全文(3584) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.859 second(s), page refreshed 144756403 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号