none
INF File Installation Debugging on OEMUNI driver? (USING WDK 6000) RRS feed

  • Question

  • HI,

         I am trying to install a printer via a multi-os inf file.  So far, I've tried two avenues to build the inf.  The first was to use the Windows Driver Development Kit's sample inf and do cut-paste from my previous-working inf file (which was built for a win32 driver).  The GenInf tool, even for the latest ddk, does not have a Printer option, but I used the Multifunction driver to produce a generic inf that looked much better than my prior attempt and did some minor modifications.  The inf  is shown below.

         My question comes in 3 parts. 

         Firstly:

              Is there anything obviously wrong with the syntax? 

         Secondly:

              Is there a way to get a better error message than, "Operation could not be completed." from the print spooler in a log file (I've checked the amin tool's event viewer which shows nothing)? 

         Finally:

              Is there a method of using the GenINF tool to make a printer inf file that will work for Vista 32 and 64 bit editions?

         Thanks in advance for any replies!

     

     

    Code Snippet

     

    ; ABCINC.INF

    ;

    ; INF file for the ABCInc OEMUni Print Driver

    ;

    ; Copyright 2007 ABC Inc.

     

    [Version]

    Signature="$Windows NT$"

    Provider=%ABC%

    LayoutFile=ntprint.inf

    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}

    Class=Printer

    DriverVer=07/02/2007,5.0.57.0

     

    [Manufacturer]

    %ABC%=ABCInc,NTx86,NTamd64

     

    [ABCInc]

    %ABCPrinterModel% = NT5_OEMUNI

     

    [ABCInc.NTx86]

    %ABCPrinterModel% = NT5_OEMUNI

     

    [ABCInc.NTamd64]

    %ABCPrinterModel% = NT5_OEMUNI

     

    [NT5_OEMUNI]

    CopyFiles=@ABCINCIP.GPD

    CopyFiles=@ABCINCIP.INI

    CopyFiles=OEMUNI

    CopyFiles=ExitDir

    DataFile=ABCINCIP.GPD

    DataSection=UNIDRV_DATA

    Include=NTPRINT.INF

    Needs=UNIDRV.OEM,UNIDRV_DATA

     

    [OEMUNI]

    ABCINCIPDRV.DLL

     

    [ExitDir]

    ABC32D.DLL

     

    [SourceDisksNames]

    100 = %OEMSample%

     

    [SourceDisksFiles]

    STDNAMES.GPD      = 100

    ABCINCIP.gpd      = 100

    ABCINCIP.INI      = 100

     

    [SourceDisksFiles.x86]

    ABCIncipdrv.dll   = 100,i386

    ABC32d.DLL  = 100,i386

     

    [SourceDisksFiles.amd64]

    ABCIncipdrv.dll   = 100,amd64

    ABC32d.DLL  = 100,amd64

     

    [DestinationDirs]

    DefaultDestDir=66000

    ExitDir=11

     

    [Strings]

    ABC="ABCInc"

    ABCPrinterModel="ABCInc Printer 11.0.57.0"

    OEMSample="ABCInc Printer"

     

     

    Wednesday, July 11, 2007 7:48 PM

Answers