.inf파일 분석

; ========================= test.inf ========================

; This .inf file will control the installation of the MFC test
; control. This control has been compiled with Visual C++ version 4.2.
; The FileVersion tags in the dependent DLLs section on this file
; reflect this requirement.

[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0

[Add.Code]
test.ocx=test.ocx
; These are the necessary supporting DLLs for MFC 4.2 ActiveX Controls
mfc42.dll=mfc42.dll
msvcrt.dll=msvcrt.dll
olepro32.dll=olepro32.dll

; dependent DLLs
[msvcrt.dll]
; This is an example of conditional hook. The hook only gets processed
; if msvcrt.dll of the specified version is absent on client machine.
FileVersion=6,0,8168,0
hook=mfc42installer

[mfc42.dll]
FileVersion=6,0,8168,0
hook=mfc42installer

[olepro32.dll]
FileVersion=5,0,4261,0
hook=mfc42installer

[mfc42installer]
file-win32-x86=<LINK TYPE="GENERIC" VALUE="
http://activex.microsoft.com
/controls/vc/mfc42.cab">http://activex.microsoft.com/controls/vc
/mfc42.cab</LINK>
; If dependent DLLs are packaged directly into the above cabinet file
; along with an .inf file, specify that .inf file to run as follows:
;InfFile=mfc42.inf
; The mfc42.cab file actually contains a self extracting executable.
; In this case we specify a run= command.
run=%EXTRACT_DIR%\mfc42.exe

; thiscab is a keyword which, in this case, means that test.ocx
; can be found in the same .cab file as this .inf file
; file-win32-x86 is an x86 platform specific identifier
; See the ActiveX SDK - ActiveX Controls - Internet Component Download -
; Packaging component code for automatic download

[test.ocx]
file-win32-x86=thiscab
; *** add your controls CLSID here ***
clsid={0D886696-C7CE-11D3-A175-08002BF17507}
; Add your ocx's file version here.
FileVersion=1,0,0,1
RegisterServer=yes


-----------------------------------------------------------------------------------------------

inf 파일에 사용하는 것은 cab 파일을 만들기 위한 것입니다.

 

inf  파일의 버전을 나타내는 것으로 모든 파일에 동일하게 사용합니다.

즉, 수정할 필요가 없다는 이야기죠...

 

[version]
signature="$CHICAGO$"
AdvancedINF=2.0

 

cab 파일에 들어갈 파일을 포함 하는것입니다.

여기에 나열된 파일은 아래에 모두 써 주어야 합니다.

 

[Add.Code]
test.ocx=test.ocx
mfc42.dll=mfc42.dll
msvcrt.dll=msvcrt.dll
olepro32.dll=olepro32.dll

 

여기서 부터는 각 파일의 정보를 넣어주는 것입니다.

파일 이름과 파일 버전, 그리고 실행할 수 있는 프로그램을 나열합니다.

아래의 DLL은 모두 mfc42installier를 이용하여 설치를 하게 됩니다.

-->msvcrt.dll

 

[msvcrt.dll]
FileVersion=6,0,8168,0
hook=mfc42installer

 

-->mfc42.dll

 

[mfc42.dll]
FileVersion=6,0,8168,0
hook=mfc42installer

 

[olepro32.dll]
FileVersion=5,0,4261,0
hook=mfc42installer

 

--> mfc42installer를 다운받을 주소와 실행을 위한 것입니다.

 

[mfc42installer]
file-win32-x86=http://activex.microsoft.com
/controls/vc/mfc42.cab">http://activex.microsoft.com/controls/vc
/mfc42.cab

run=%EXTRACT_DIR%\mfc42.exe

 

--> 실제 파일의 CLSID와 버전 그리고 등록을 할 것인지를 설정해 주면 됩니다.

 

[test.ocx]
file-win32-x86=thiscab
clsid={0D886696-C7CE-11D3-A175-08002BF17507}
FileVersion=1,0,0,1
RegisterServer=yes

 

 

간단히 알고 있는 정보를 올립니다.

그외에도 주의해야 할 것이 좀 더 있긴 한데요

무얼 얘기해 줘야 할지 모르겠네요....

 

도움이 되었으면 좋겠네요...

by S2nNAMU | 2008/11/05 18:57 | PROGRAMING | 트랙백 | 덧글(0)
트랙백 주소 : http://littletrue.egloos.com/tb/3968945
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

< 이전페이지 다음페이지 >