« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 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 |
|
|