【討論】【教學】製作自己的 影音解碼codec包 --4--inf檔的撰寫(三)



贊助商連結


purk
2005-06-26, 06:48 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/install/hh/install/inf-format_70c9fc6c-3577-44fb-95e8-c44fa0429fd2.xml.asp

----INF Strings Section------MS範例----不一定需要---

[Strings] | [Strings.LanguageID] ...

strkey1= ["]some string["]
strkey2 = " string-with-leading-or-trailing-whitespace " |
"very-long-multiline-string " |
"string-with-semicolon" | "string-ending-in-backslash" |
""double-quoted-string-value""

[Strings]
Msft="Microsoft"
MfgToshiba="Toshiba"
Tosh404.DeviceDesc="Toshiba DVD decoder card"
; ...

The following example illustrates string concatenation.

[OEM Windows System Component Verification]
OID = 1.3.6.1.4.1.311.10.3.7 ; WHQL OEM OID
Notice = "%A% %B% %C% %D% %E%"

[Strings]
A="This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process."
B = "This certificate and drivers signed with this certificate are intended for use in test environments only, and are not intended for use in any other context."
C = "Vendors who distribute this certificate or drivers signed with this certificate outside a test environment may be in violation of their driver signing agreement."
D = "Vendors who have their drivers signed with this certificate do so at their own risk."
E = "In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendor's driver signing agreement."


[Strings]
INF_Provider="Adaptec"
Floppy_Description = "Adaptec Drivers Disk"



---wmp10lite------setup.ini-------

wmp10lite作者沒有定義此部份

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

----ATBSCODEC.inf---

[Strings]
UIN = "ATB's CodecS Pack Ver. 2.2.0 Lite"
Ctr = "Rundll32.exe Advpack.dll,LaunchINFSection Control.INF"
FN = "FriendlyName"
DS = "Description"
UIP = "Software\Microsoft\Windows\CurrentVersion\Uninstall\ATBSCODEC"
UIM = "SYSTEM\CurrentControlSet\Control\MediaResources\icm"
UAM = "SYSTEM\CurrentControlSet\Control\MediaResources\acm"
UNT = "Software\Microsoft\Windows NT\CurrentVersion"
URg = "Software\Microsoft\Windows\CurrentVersion\RunOnceEx"
DD = "drivers.desc"
D32 = "Drivers32"
MEX = "SOFTWARE\Microsoft\MediaPlayer\Player\Extensions"
LQC = "SOFTWARE\CLASSES"
URM = "Software\RealNetworks"
RSDK = "RealMediaSDK\6.0\Preferences"
RCL = "{CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA}"
MDC = "MIME\Database\Content Type"
QLD = "Software\Apple Computer, Inc.\QuickTime"
QSD = "Software\Microsoft\Windows\CurrentVersion\SharedDLLs"
QIEP = "Internet Explorer\PLUGINS"
KEY_DMO1 = "DirectShow\MediaObjects\82d353df-90bd-4382-8bc2-3f6192b76e34\InputTypes"
KEY_DMO = "DirectShow\MediaObjects\Categories\4a69b442-28be-4991-969c-b500adf5d8a8\InputTypes"

-----------------------------------------------------------
; *****************************************
; **** pczone的Video解碼編碼Codec整合包 ****
; *****************************************
; INF created with the help of WillyPad. & INF-Editor
; Freeware from Snoopy 81









[Strings]
;用來宣告inf檔內多個變數用的,減少inf撰寫時重複字元的使用

Name="Video解碼編碼Codec整合包"
Version="1.0"
DiskName="Video解碼編碼Codec整合包 Installation Disk"
Author=PCZONE
Copyright=PCZONE Corporation
Description=PCZONE ^^
UnInstallPath="Software\Microsoft\Windows\CurrentVersion\Uninstall\Codec"
MediaClassName="Media Devices"
UninstallDispName="PCZONE的Video解碼編碼Codec整合包"
;SvcDesc="這是設定為服務"