Create the INF file of the cab file (verified)

Source: Internet
Author: User

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:


 
  1. ; Sample INF file for POLYGON.DLL
  2. [version] 
  3. ; version signature (same for both NT and Win95) do not remove
  4. signature="$CHICAGO$"
  5. AdvancedINF=2.0  
  6.  
  7. [Add.Code]
  8. polygon.dll=polygon.dll
  9. atl.dll=atl.dll
  10.  
  11. ; needed DLL
  12. [atl.dll]
  13. file-win32-x86=thiscab
  14. FileVersion=2,00,0,7024
  15. DestDir=11
  16. RegisterServer=yes 
  17.  
  18. [polygon.dll]
  19. file-win32-x86=thiscab
  20. clsid={4CBBC676-507F-11D0-B98B-000000000000} 
  21. FileVersion=1,0,0,1 
  22. RegisterServer=yes  
  23. ; end of INF file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.