请输入您要查询的百科知识:

 

词条 INF file
释义

  1. Structure

  2. See also

  3. References

  4. External links

{{about|setup files|help files|Information Presentation Facility|other uses|INF (disambiguation)}}

In computing, an INF file or Setup Information file is a plain-text file used by Microsoft Windows for the installation of software and drivers. INF files are most commonly used for installing device drivers for hardware components. Windows includes the IExpress tool for the creation of INF-based installations. INF files form part of the Windows Setup API and of its successor, Windows Installer.

The \\windows\\inf directory contains several such .inf files.[1]

Structure

The structure of an INF file is very similar to that of an INI file; it contains various sections that specify the files to be copied, changes to the registry, etc. All INF files contain a [Version] section with a Signature key-value pair specifying the version of Windows that the INF file is meant for. The signature is commonly $CHICAGO$ (for Windows 9x) or $WINDOWS NT$ (for Windows NT/2K/XP). Most of the remaining sections are user-defined and contain information specific to the component being installed.

An example of an INF file might have something like this:

[autorun]

open=example.exe

What this would do is open the example.exe file automatically whenever the media containing the file (in its root directory) is connected to the computer. This can be dangerous, as there is no way to tell whether such a file exists before inserting the media. Since Windows XP, however, this feature has been replaced with a menu forcing the user to choose which action to take.

INF Files can sometimes be dangerous on Windows 2000 as they may allow viruses to autorun without prompting.{{Citation needed|date=January 2010}}

They are blocked on Windows 7, but can be worked around. [2]

[autorun]

open=example.bat

icon=cd.ico

icon=*.ico command replaces any old or default drive icon with the specified one.

[autorun] can be replaced by [AutoRun] or [Autorun].

See also

  • Autorun.inf
  • Cabextract

References

1. ^{{cite book| last1 = Norton| first1 = Peter| author-link1 = Peter Norton| last2 = Mueller| first2 = John Paul| title = Peter Norton's Complete Guide to Windows XP| url = https://books.google.com/books?id=QLtjChi0LkMC| publisher = Pearson Education| publication-date = 1997| isbn = 9780132715386| accessdate = 2014-08-31| quote = Look in the \\WINDOWS\\INF directory, and you'll see a set of INF files.}}
2. ^{{cite web|url=http://www.makeuseof.com/tag/autolaunch-apps-usb-stick-windows/|title=How To Auto-Launch Apps With A USB Stick [Windows]|publisher=}}

External links

  • INF Files at MSDN
  • Internet Component Download with INF Files at MSDN
  • Standard Modem Command Sets and INFs.

2 : Configuration files|Windows components

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 11:20:53