ADKiller中INF格式

Posted on 2008-06-01 18:01 ChinaBUG[iPodMP.com] 阅读(95) 评论(0)  编辑  收藏 所属分类: 技术文章

<HTML>
<HEAD>
<TITLE>MyToolbar.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="Toolbar"
CLASSID="CLSID:0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE"
CODEBASE="ADKiller.CAB#version=1,0,0,0">
</OBJECT>
<OBJECT ID="clsForward"
CLASSID="CLSID:7C767776-849B-4E38-ACF8-7CFFD2A22A95"
CODEBASE="ADKiller.CAB#version=1,0,0,0">
</OBJECT>
</BODY>
</HTML>

----ADKiller.CAB
ADKiller.dll
ADKiller.inf
e1.ico
e2.ico
vbshell.tlb


-----ADKiller.inf
;MyToolbar.dll 的 INF 文件
;DestDir 可以为 10 则在 Windows 目录,为 11 则在 Windows\System(32) 目录,或为空则在 Occache 目录。

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

[DefaultInstall]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry

[RInstallApplicationFiles]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry
[DestinationDirs]
install.files=11

[SourceDisksNames]
1=%DiskName%,ADKiller.CAB,1

[Add.Code]
ADKiller.dll=ADKiller.dll
Vbshell.tlb=Vbshell.tlb
e1.ico=e1.ico
e2.ico=e2.ico
msvbvm60.dll=msvbvm60.dll
OLEAUT32.DLL=OLEAUT32.DLL
OLEPRO32.DLL=OLEPRO32.DLL
ASYCFILT.DLL=ASYCFILT.DLL
STDOLE2.TLB=STDOLE2.TLB
COMCAT.DLL=COMCAT.DLL
VB6CHS.DLL=VB6CHS.DLL

[install.files]
ADKiller.dll=ADKiller.dll
Vbshell.tlb=Vbshell.tlb
e1.ico=e1.ico
e2.ico=e2.ico

[SourceDisksFiles]
ADKiller.dll=1
Vbshell.tlb=1
e1.ico=1
e2.ico=1

[ADKiller.dll]
file-win32-x86=thiscab
RegisterServer=yes
clsid={7C767776-849B-4E38-ACF8-7CFFD2A22A95}
DestDir=
FileVersion=1,1,0,0

[Vbshell.tlb]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=0,0,0,0

[e1.ico]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=0,0,0,0

[e2.ico]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=0,0,0,0

[msvbvm60.dll]
hook=msvbvm60.cab_Installer
FileVersion=6,0,88,77

[msvbvm60.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[OLEAUT32.DLL]
hook=OLEAUT32.cab_Installer
FileVersion=2,40,4275,1

[OLEAUT32.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[OLEPRO32.DLL]
hook=OLEPRO32.cab_Installer
FileVersion=5,0,4275,1

[OLEPRO32.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[ASYCFILT.DLL]
hook=ASYCFILT.cab_Installer
FileVersion=2,40,4275,1

[ASYCFILT.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[STDOLE2.TLB]
hook=STDOLE2.cab_Installer
FileVersion=2,40,4275,1

[STDOLE2.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[COMCAT.DLL]
hook=COMCAT.cab_Installer
FileVersion=4,71,1460,1

[COMCAT.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VBRun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[VB6CHS.DLL]
hook=VB6CHS.cab_Installer
FileVersion=6,0,88,77

[VB6CHS.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/VB6CHS.cab
InfFile=VB6CHS.inf

[Setup Hooks]
AddToRegHook=AddToRegHook

[AddToRegHook]
InfSection=DefaultInstall2

[DefaultInstall2]
AddReg=AddToRegistry

[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{7C767776-849B-4E38-ACF8-7CFFD2A22A95}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{7C767776-849B-4E38-ACF8-7CFFD2A22A95}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of established copyrights."
HKCR,"CLSID\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}","@",,"ADKiller"
HKCR,"CLSID\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}\Implemented Categories\{00021494-0000-0000-C000-000000000046}"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Toolbar","{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}",,"ADKiller"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","Default Visible",,"Yes"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","ButtonText",,"ADKiller"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","HotIcon",,"%11%\e2.ico"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","Icon",,"%11%\e1.ico"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","CLSID",,"{E0DD6CAB-2D10-11D2-8F1A-0000F87ABD16}"
HKLM,"SOFTWARE\Microsoft\Internet Explorer\Extensions\{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CF}","BandCLSID",,"{0FC9B0C1-4DEF-4B6F-AB2F-B956A10593CE}"
HKLM,"SOFTWARE\ADKiller","ad4.sina",,"1"
HKLM,"SOFTWARE\ADKiller","uil.sina",,"1"
HKLM,"SOFTWARE\ADKiller","doubleclick",,"1"
HKLM,"SOFTWARE\ADKiller","sina.allyes",,"1"
HKLM,"SOFTWARE\ADKiller","popme.163.com/ad",,"1"
HKLM,"SOFTWARE\ADKiller","sohu.com/cs/sms/ad",,"1"

[RegisterFiles]
%11%\ADKiller.dll

Copyright © ChinaBUG[iPodMP.com]