If you are using CopyFiles in your INF to copy a single file you probably use something like this.
Code: Select all
CopyFiles=Section.Name
[DestinationDirs]
Section.Name=ldid(,subdir)
[Section.Name]
singlefile.ext ;<-This is a section only has single file, we don't need it
Code: Select all
[DefaultInstall]
CopyFiles=@USDownld.inf
[DestinationDirs]
DefaultDestDir=17 ;<-This sets the default destination dir of the file/s with the "@" symbol
Code: Select all
CopyFiles=@filename.ext
Code: Select all
[DestinationDirs]
DefaultDestDir=ldid(,subdir)
Source: INF_DOCNote that you can specify the copying of a single file in the CopyFiles item of the Install section itself, without building a CopyFiles section. To do this, use the special character "@" to force a single file copy. An example of using the "@" character in a CopyFiles-type item is in the Install section reference topic. Copying a single file in this way is somewhat limited because the source and destination filenames must be the same in this case and you cannot use a temporary file.
The following example shows how to copy individual files:
CopyFiles=FileSection1,@myfile.txt,@anotherfile.txt,LastSectionName
[DestinationDirs]
FileSection1=ldid(, subdir)
DefaultDestDir=ldid(, subdir) ;<-This is where the files get copied
LastSectionName=ldid(, subdir)