Install error on GPD-only XPS printer driver

Discussion in 'Windows Vista Drivers' started by Harry Fry, Jan 7, 2010.

  1. Harry Fry

    Harry Fry Guest

    I'm trying to create a very basic GPD-only XPS printer driver, but when I try
    to install it through the Add Printer wizard I get an error 0x00000002. I'm
    primarily a business application developer, so my knowledge of printer
    drivers is rather limited, and any help on this will be greatly appreciated.

    My INF file is:

    [Version]
    Signature="$Windows NT$"
    Provider=%AS%
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=10/17/2008,6.1.6930.0

    [Manufacturer]
    %Microsoft%=Microsoft,NTx86,NTamd64,NTx86.6.0,NTamd64.6.0

    [Microsoft.NTx86]
    "Acme Virtual Printer" = INSTALL_ASVP_PRE_VISTA

    [Microsoft.NTamd64]
    "Acme Virtual Printer" = INSTALL_ASVP_PRE_VISTA

    [Microsoft.NTx86.6.0]
    "Acme Virtual Printer" = INSTALL_ASVP_VISTA

    [Microsoft.NTamd64.6.0]
    "Acme Virtual Printer" = INSTALL_ASVP_VISTA

    [INSTALL_ASVP_PRE_VISTA]
    CopyFiles=ASVPFiles
    DriverFile=mxdwdrv.dll
    PrintProcessor="MS_XPS,filterpipelineprintproc.dll"
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=ASVP.GPD
    Include=NTPRINT.INF, MSXPSDRV.INF
    Needs=UNIDRV.OEM, XPSGPD.OEM, XPSDRV.OEM

    [INSTALL_ASVP_VISTA]
    CopyFiles=ASVPFiles
    DriverFile=mxdwdrv.dll
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=ASVP.GPD
    ICMProfiles=xdwscRGB.icc
    Needs=UNIDRV.OEM, XPSGPD.OEM, XPSDRV.OEM

    [PrinterPackageInstallation.x86]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0},
    {D20EA372-DD35-4950-9ED8-A6335AFE79F5}

    [PrinterPackageInstallation.amd64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0},
    {D20EA372-DD35-4950-9ED8-A6335AFE79F5}

    [DestinationDirs]
    DefaultDestDir=66000

    [COLORPROFILES]
    xdwscRGB.icc
    xdCMYKPrinter.icc

    [ASVPFiles]
    ASVP.gpd
    asvp-pipelineconfig.xml

    [SourceDisksNames.x86]
    1 = %Location%,,
    2 = %Location%,,,x86

    [SourceDisksNames.amd64]
    1 = %Location%,,
    2 = %Location%,,,amd64

    [SourceDisksFiles]
    ASVP.gpd = 1
    asvp-pipelineconfig.xml = 1
    xdwscRGB.icc = 1
    xdCMYKPrinter.icc = 1

    [Strings]
    Location="Acme Virtual Printer Location"
    AS="Acme"
    Microsoft="Microsoft"

    -------------------------------------
    and my GPD file is:

    *GPDFileVersion: "1.0"
    *GPDSpecVersion: "1.0"
    *GPDFileName: "ASVP.gpd"
    *Include: "StdNames.gpd“
    *%
    *% Include XPSDrv include file
    *%
    *Include: “MSXpsInc.gpd“
    *ModelName: "Acme Virtual Printer"
    *MasterUnits: PAIR(1200, 1200)
    *ResourceDLL: "unires.dll"
    *PrinterType: PAGE
    *MaxCopies: 1

    *%
    *% IHV Private Namespace
    *%
    *PrintSchemaPrivateNamespaceURI:“http://www.acme.com/schema/2010â€
     
    Harry Fry, Jan 7, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.