谢谢YXZ123:
能不能说说INF后缀的文件在WIINDOWS中起个什么作用,如果可能的话请告知
其编写格式,最好有官方文档。
下面是我摘的一段WORDPAD.INF
WORDPAD.INF
;
This is the Setup information file to install WordPad
as an Optional Component.
;
Copyright (c) 1993-1997 Microsoft Corporation
;
[version]
signature="$CHICAGO$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf
[DestinationDirs]
WordPadCopyFiles = 16422,%ACCESSOR%
DIRID_PROGRAM_FILES/Program Files/Windows NT/Accessories
WordPadCopyFiles_HELP = 18
LDID_HELP
WordPadFilesOld = 16422,%ACCESSOR%
DIRID_PROGRAM_FILES/Program Files/Windows NT/Accessories
WriteCopyFiles = 11 LDID_SYSTEM
WriteFilesOld = 11 LDID_SYSTEM
[Optional Components]
MSWordPad
[MSWordPad]
OptionDesc = %MSWORDPADOPT_DESC%
Tip = %MSWORDPADOPT_TIP%
IconIndex = 39 Windows Logo mini-icon for dialogs
Parent = AccessTop
CopyFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, WriteCopyFiles
DelFiles = WordPadFilesOld, WriteFilesOld
AddReg = WordPadReg
ProfileItems = WordpadInstallItems, WordpadUninstallItems
Uninstall = MSWordPadUninstall
Modes = 0,1,2,3
SizeApproximation = 294912
[MSWordPadUninstall]
DelFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, WordPadFilesOld, WriteCopyFiles
UpdateInis = WordPadInis.remove
ProfileItems = WordpadUninstallItems,WordpadUninstallCommonItems
DelReg = WordPadReg
[DefaultInstall]
AddReg = WordPad.install.reg, WordPadReg
[WordPadCopyFiles]
wordpad.exe
[WordPadCopyFiles_HELP]
wordpad.chm
wordpad.hlp
[WordPadFilesOld]
mfc40u.dll
msvcrt40.dll
[WriteCopyFiles]
;copy stub program that launches wordpad.exe (for compat. reasons):
write.exe
[WriteFilesOld]
write.cnt
write.hlp
[WordpadInstallItems]
Name = %WORDPAD_LINK%
CmdLine = 16422, %ACCESSOR%, wordpad.exe
SubDir = %APPS_DESC%
InfoTip = %Wordpad_Infotip%
[WordpadUninstallItems]
Name = %WORDPAD_LINK%,0x00000003
Subdir = %APPS_DESC%
[WordpadUninstallCommonItems]
Name = %WORDPAD_LINK%,0x00000002
Subdir = %APPS_DESC%
。。。。。。。。。。。。。。
看了一会也不明白,感觉象INI可又不是,那些标中括号的标题为什么那么写,
下面的子项又照什么写,以及象WORDPAD这样的程序为什么也存在这样的INF文件?