Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:3190回复:14

[SourceDisksFiles]和[SourceDisksNames]节2000下的写法(50分)!

楼主#
更多 发布于:2003-01-07 19:36
各位大佬,哪位知道[SourceDisksNames]和[SourceDisksFiles]节的详细语法介绍么??为什么俺怎么写,系统都说指定位置不包含硬件信息??
比如说我的Device.sys文件和这个1.INF文件都放在D盘的根目录下,我应该怎么写这两节??

最新喜欢:

dregsdregs
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2003-01-08 12:55
[SourceDisksNames] |
[SourceDisksNames.x86]
 
diskid = %strkey% | [\"]disk-description[\"][,[tagfile][,unused,path]]
...

A SourceDisksNames section identifies the distribution disk(s) or CD-ROM disc(s) that contain the source files to be transferred to the target machine during installation.

Entry Values
diskid
Specifies a nonnegative integer that identifies a source disk. This value can be expressed in decimal or in hexadecimal notation, but it cannot require more than four bytes of storage. If there is more than one source disk for the distribution, each diskid entry in this section must have a unique value, such as 1, 2, 3,... or 0x0, 0x1, 0x2,... and so forth.
disk-description
Specifies a %strkey% token or a \"quoted string\" that describes the contents and/or purpose of the disk identified by diskid. The installer can display the value of this string to the end user during installation, for example, to identify a source disk to be inserted into a drive at a particular stage of the installation process.
Every %strkey% specification in this section must be defined in the INF\'s Strings section. Any disk-description that is not a %strkey% token is a user-visible string that must be delimited by double-quote characters (\") if it has any leading or trailing spaces.

tagfile
This optional value specifies the name of a tag file supplied on the distribution disk, either in the root directory or in the given path subdirectory, if any, of the disk. The value should specify only the filename, not any directory or subdirectory.
Setup uses a tag file to verify that the user inserted the correct installation disk. Tag files are only used for removeable media.

A vendor can also use a tag file to contain a \"cabinet\" of compressed installation files. If tagfile has the extension .cab, Setup uses it as a tag file and as a source of installation files.

unused
This is not used on Windows 2000. This value is only used in Windows 9x. See the Windows 98 DDK documentation for further information.
path
This optional value specifies the path to the directory on the distribution disk containing source files, including the tagfile if any. The path is relative to the root and is expressed as \\dirname1\\dirname2... and so forth. If this value is omitted from an entry, files are assumed to be in the root directory of the distribution disk.
Subdirectories containing particular source files can be specified relative to a given path directory in the corresponding SourceDisksFiles section of the INF file. However, any tagfile supplied on the distribution disk must reside either in the given path directory or, if path is omitted, in the root directory.

Comments
A SourceDisksNames section can have any number of entries, one for each distribution disk. Any INF with a SourceDisksNames section also must have a SourceDisksFiles section.

These sections never appear in system-supplied INFs. Instead, system-supplied INFs specify LayoutFile entries in their Version sections.

To support a multiplatform distribution of Windows 2000 driver files, construct platform-specific SourceDisksNames sections. For example, all system setup API functions that process a SourceDisksNames section will search first for a SourceDisksNames.x86 section on a Windows 2000 x86-based platform and only look at an undecorated SourceDisksNames section if they cannot find a SourceDisksNames.x86 section.

Examples
In the following example, the write.exe file is the same for all Windows 2000 platforms and is located in the \\common directory on a CD-ROM distribution disc. The cmd.exe file is a platform-specific file that is only used on Windows 2000 x86-based platforms.

[SourceDisksNames]
1 = \"Windows NT CD-ROM\",file.tag,,\\common
 
[SourceDisksNames.x86]
2 = \"Windows NT CD-ROM\",file.tag,,\\x86
 
[SourceDisksFiles]
write.exe = 1
cmd.exe = 2
 
This next example again shows the SourceDisksNames section from the example in the preceding reference for the Version section.

[SourceDisksNames]
;
; diskid = description[, [tagfile] [, <unused>, subdir]]
;
1 = %Floppy_Description%,,,\\Win98
2 = %Floppy_Description%,,,\\WinNT


看DDK文档。
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-01-08 13:08
晕~~~~~~~~`我当然知道要看DDK的文档,就是看了半天、试了半天还不行才来这里问的啊!!
zhazha818617
驱动牛犊
驱动牛犊
  • 注册日期2002-12-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-01-08 14:21
我也遇到这个问题, 98下总是装不上去驱动,我做的是并口驱动,你呢, 对了,如果问题解决了可以给我发一份方法吗,如果我的解决了,也给你一份,行吗
eMail:zhashaofeng@sohu.com
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2003-01-08 16:09
当然行啊,互相帮助嘛!!
violet_jj
驱动小牛
驱动小牛
  • 注册日期2002-11-07
  • 最后登录2003-08-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-01-08 17:47
 
哪位知道[SourceDisksNames]和[SourceDisksFiles]节的详细语法介绍么??

/////////////////////////////
[SourceDisksNames] | [SourceDisksNames.x86]
diskid = %strkey% | [\"]disk-description[\"][,[tagfile][,unused,path]]
...
//////
diskid: 规定标识一个源盘的非负整数
disk-description:规定一个%strkey% 标记或一个引号之内的串所标识的源盘的内容
tagfile:可选。特征文件名。只规定文件名,不规定任何路径。
unused:用于98
path:可选。标识源文件和特征文件的路径,如果省略,文件被假定在根目录下。
2 = \"Windows NT CD-ROM\",file.tag,,\\x86
/////////////////////////////////
[SourceDisksFiles]|[SourceDisksFiles.x86]
filename=diskid[,[subdir][,size]]
....
//////
filename=文件名称
diskid:包含文件的源盘,用一个整数表示
subdir:目录,如果省略,文件被假定在根目录下
size:可选。文件的非压缩长度,字节表示。
/////
[SourceDisksFiles.x86]
abc.sys=2,\\x86
////////////////////
给分阿, :D :D :D
zhazha818617
驱动牛犊
驱动牛犊
  • 注册日期2002-12-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2003-01-09 10:39
兄弟:
又是我,98下提示找不到硬件,不一定是你的inf文件问题,
我用同一个inf文件安装不同的驱动程序,有一个就会出现
找不到硬件。你是在98下安装吗
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2003-01-09 12:37
violet_jj老大,能把你这些话的出处告诉我吗??是一本书吗??能告诉我哪里可下吗??
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
8楼#
发布于:2003-01-09 14:55
violet_jj老大,能把你这些话的出处告诉我吗??是一本书吗??能告诉我哪里可下吗??

ft,你把DDK的E文翻译了,不就是了?!
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
9楼#
发布于:2003-01-09 22:46
我讨厌看E文。。。。。。。。
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
10楼#
发布于:2003-01-10 16:22
你讨厌写driver吗?
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
11楼#
发布于:2003-01-10 19:49
我也不想写啊――被逼的。。。。。。。
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
12楼#
发布于:2003-01-11 11:11
那只好被逼的去看E文了。
Wxy8030
驱动小牛
驱动小牛
  • 注册日期2002-03-10
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
13楼#
发布于:2003-01-11 12:14
别吓唬我。。。。。。。。
。。。郁闷中。。。。。。想我这么爱国的人居然不得不向E文低头。。。。。。。。。痛苦!!
arthurtu
驱动巨牛
驱动巨牛
  • 注册日期2001-11-08
  • 最后登录2020-12-19
  • 粉丝0
  • 关注0
  • 积分26分
  • 威望161点
  • 贡献值0点
  • 好评度35点
  • 原创分0分
  • 专家分0分
  • 社区居民
14楼#
发布于:2003-01-11 17:04
别吓唬我。。。。。。。。
。。。郁闷中。。。。。。想我这么爱国的人居然不得不向E文低头。。。。。。。。。痛苦!!

???????爱国和学E文有什么关系?
居然还痛苦?!
游客

返回顶部