Version: 1.0
[Version]
; Version signature (same for both NT and Win95) do not remove
Signature = "$ Chicago $"
Advancedinf = 1.0
[Defainstall install]
Copyfiles = install. Files
Registerocxs = registerfiles
[Destinationdirs]
Install. Files = 30, Program Files \ szdcec \ CMS
; You can add other content in the install. files2 section.
[Install. Files]
Dpaxm. ocx = dpaxm. ocx
[Dpaxm. ocx]
CLSID = {F86097AA-6A58-42D8-81A3-9F55B9EA9FC6}
File-win32-x86 = thiscab
; Destdir = 30, Program Files \ szdcec
Registerserver = Yes
[Registerfiles]
% 30% \ Program Files \ szdcec \ CMS \ dpaxm. ocx
; End of INF file
Release 2.0
Http://technet.microsoft.com/zh-cn/query/cc468356#_vccore_running_the_cabarc_utility
Http://msdn.microsoft.com/zh-cn/library/3h8ff753%28v=VS.80%29.aspx#_vccore_creating_an_inf_file
For example, the following inf file is used to create a cab file for the ATL polygon control. You can download the ATL polygon sample file from Visual C ++ CD and generate the minsize version to generate polygon. dll. If the minsize version of the polygon control is generated, another DLL, ATL. dll, is required. Because you need to register ATL. DLL before polygon. dll, place ATL. dll first in the INF file:
- ; Sample INF file for POLYGON.DLL
- [version]
- ; version signature (same for both NT and Win95) do not remove
- signature="$CHICAGO$"
- AdvancedINF=2.0
-
- [Add.Code]
- polygon.dll=polygon.dll
- atl.dll=atl.dll
-
- ; needed DLL
- [atl.dll]
- file-win32-x86=thiscab
- FileVersion=2,00,0,7024
- DestDir=11
- RegisterServer=yes
-
- [polygon.dll]
- file-win32-x86=thiscab
- clsid={4CBBC676-507F-11D0-B98B-000000000000}
- FileVersion=1,0,0,1
- RegisterServer=yes
- ; end of INF file