Under Vista, my .inf file works just fine. However, under XP the user
is prompted for the file that resides under the x86 folder. XP appens
i386\ to the installation folder, instead of looking at the location
mentioned in the .inf.
[Manufacturer]
“PaperLess”=PaperLess, NTx86, NTamd64
[PaperLess]
“PaperLess Printer” = PLPrinter
[PaperLess.NTx86]
“PaperLess Printer” = PLPrinter
[PaperLess.NTamd64]
“PaperLess Printer” = PLPrinter
[PLPrinter]
CopyFiles=@PLPrinter.GPD
CopyFiles=@PLPrinter.INI
CopyFiles=BMP
DataFile=PLPrinter.GPD
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=UNIDRV.OEM,UNIDRV_DATA
[BMP]
PLPrinter.DLL
[SourceDisksFiles.x86]
PLPrinter.dll = 100,x86
[SourceDisksFiles.amd64]
PLPrinter.dll = 100,amd64
[SourceDisksFiles]
PLPrinter.GPD = 100
PLPrinter.INI = 100
(some fluff was cut)
Where did I go wrong?
–
Rune
What does your [SourceDisksNames] section(s) look like? As a wild
guess, there could be some strange interactions between that and your
[SourceDisksFiles] sections.
As an alternative, rather than dealing with paths in the INF file, I
find it easier to use the *.inx plus stampinf technique that is
demonstrated in a few WDK 6000 sample drivers.
Rune Moberg wrote:
Under Vista, my .inf file works just fine. However, under XP the user
is prompted for the file that resides under the x86 folder. XP appens
i386\ to the installation folder, instead of looking at the location
mentioned in the .inf.
[Manufacturer]
“PaperLess”=PaperLess, NTx86, NTamd64
[PaperLess]
“PaperLess Printer” = PLPrinter
[PaperLess.NTx86]
“PaperLess Printer” = PLPrinter
[PaperLess.NTamd64]
“PaperLess Printer” = PLPrinter
[PLPrinter]
CopyFiles=@PLPrinter.GPD
CopyFiles=@PLPrinter.INI
CopyFiles=BMP
DataFile=PLPrinter.GPD
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=UNIDRV.OEM,UNIDRV_DATA
[BMP]
PLPrinter.DLL
[SourceDisksFiles.x86]
PLPrinter.dll = 100,x86
[SourceDisksFiles.amd64]
PLPrinter.dll = 100,amd64
[SourceDisksFiles]
PLPrinter.GPD = 100
PLPrinter.INI = 100
(some fluff was cut)
Where did I go wrong?
On Jan 31, 2008 6:20 PM, Faris Y. Yau wrote:
> What does your [SourceDisksNames] section(s) look like? As a wild
[SourceDisksNames]
100 = “PaperLess Driver Folder”
Which is what it prompts for when it can’t find i386\PLPrinter.dll.
> As an alternative, rather than dealing with paths in the INF file, I
> find it easier to use the *.inx plus stampinf technique that is
> demonstrated in a few WDK 6000 sample drivers.
I’ll look into that now. Thanks.
–
Rune
On Jan 31, 2008 6:20 PM, Faris Y. Yau wrote:
> What does your [SourceDisksNames] section(s) look like? As a wild
[SourceDisksNames]
100 = “PaperLess Driver”
[SourceDisksNames.x86]
101 = “PaperLess Driver”,\x86
[SourceDisksNames.amd64]
101 = “PaperLess Driver”,\amd64
[SourceDisksFiles.x86]
PLPrinter.dll = 101,\x86
[SourceDisksFiles.amd64]
PLPrinter.dll = 101,\amd64
With this change, it now prompts for x86\i386 instead. XP really wants
that “i386” appended. (Vista64 was fine with the inf the way it was
and probably just as happy now)
–
Rune