none
Problem with bild XPSDrvSmpl Driver RRS feed

  • Question

  • Hello

    I'm facing to a problem with XPSDrvSmpl on my Windows 10 x64 machine:

    1. I installed Visual Studio 2015
    2. I installed WDK 10

    I configured project with the step by step tutorial(https://github.com/Microsoft/Windows-driver-samples/tree/master/print/XPSDrvSmpl).

    And i get this errors :

    Error    -2    "Inf2Cat, signability test failed." Double click to see the tool output.    
    Warning    2083 Section [printerpackageinstallation.ia64] not referenced or used.    package (Package\package)C:\XPSDrvSmpl\install\xdsmpl.inf    75    
    Warning    2083Section [printerpackageinstallation.amd64] not referenced or used.    package (Package\package)    C:\XPSDrvSmpl\install\xdsmpl.inf    71    
    Warning    The driver package project C:\XPSDrvSmpl\Driver Package1\Driver Package1.vcxproj doesn't have any references to other projects and no projects were packaged.
        Driver Package1    C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets    1627    
    Warning    2083    Section [printerpackageinstallation.x86] not referenced or used.package (Package\package)    C:\XPSDrvSmpl\install\xdsmpl.inf    67    
    Warning    The driver package project C:\XPSDrvSmpl\Driver Package1\Driver Package1.vcxproj doesn't have any references to other projects and no projects were packaged.
    Driver Package1 C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets    1627    

    This is log of inf2cat:

    Inf2Cat Tool Output:
    .............................
    Signability test failed.
    
    Errors:
    22.9.1: xdwscrgb.icc in [colorprofiles] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdcmykprinter.icc in [colorprofiles] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdsmpl.ini in [configplugin] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdsmpl.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdnames.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdwmark.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdbook.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdcolman.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdnup.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdpgscl.gpd in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    22.9.1: xdsmpl-pipelineconfig.xml in [xpsdrvsample] of \xdsmpl.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
    
    Warnings:
    None

    And this is my inf file:
    ;
    ; Copyright (c) 2005  Microsoft Corporation
    ;
    ; All rights reserved.
    ;
    ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
    ; ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
    ; PARTICULAR PURPOSE.
    ;
    ; File Name:
    ;
    ;    xdsmpl.inf
    ;
    ; Abstract:
    ;
    ;    XPSDrv sample driver install file
    ;
    [Version]
    Signature="$Windows NT$"
    Provider=%PR%
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=09/19/2013,6.0.1.0
    CatalogFile=xdsmpl.cat
    
    [Manufacturer]
    %Microsoft%=Microsoft,NTx86,NTia64,NTamd64,NTx86.6.0,NTia64.6.0,NTamd64.6.0
    
    [Microsoft.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    
    [Microsoft.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    
    [Microsoft.NTamd64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    
    [Microsoft.NTx86.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    
    [Microsoft.NTia64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    
    [Microsoft.NTamd64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    
    [INSTALL_XDSMPL_FILTERS_PRE_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    PrintProcessor="MS_XPS,filterpipelineprintproc.dll"
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    Include=NTPRINT.INF, MSXPSDRV.INF
    Needs=UNIDRV.OEM, XPSGPD.OEM, XPSDRV.OEM
    
    [INSTALL_XDSMPL_FILTERS_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    ICMProfiles=xdwscRGB.icc
    CoreDriverSections="{D20EA372-DD35-4950-9ED8-A6335AFE79F0},UNIDRV.OEM", "{D20EA372-DD35-4950-9ED8-A6335AFE79F5},XPSDRV.OEM,XPSGPD.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}
    
    [PrinterPackageInstallation.ia64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    
    [DestinationDirs]
    DefaultDestDir=66000
    COLORPROFILES=66003
    
    [COLORPROFILES]
    xdwscRGB.icc
    xdCMYKPrinter.icc
    
    [ConfigPlugin]
    XDSmpl.ini
    XDSmplUI.dll
    
    [XPSDrvSample]
    xdsmpl.gpd
    xdnames.gpd
    xdwmark.gpd
    xdbook.gpd
    xdcolman.gpd
    xdnup.gpd
    xdpgscl.gpd
    xdwmark.dll
    xdcolman.dll
    xdbook.dll
    xdnup.dll
    xdscale.dll
    xdsmpl-pipelineconfig.xml
    
    [SourceDisksNames.x86]
    1 = %Location%,,
    2 = %Location%,,,x86
    
    [SourceDisksNames.ia64]
    1 = %Location%,,
    2 = %Location%,,,ia64
    
    [SourceDisksNames.amd64]
    1 = %Location%,,
    2 = %Location%,,,amd64
    
    [SourceDisksFiles]
    xdsmpl.gpd                    = 1
    xdnames.gpd                   = 1
    xdwmark.gpd                   = 1
    xdbook.gpd                    = 1
    xdcolman.gpd                  = 1
    xdnup.gpd                     = 1
    xdpgscl.gpd                   = 1
    xdsmpl-pipelineconfig.xml     = 1
    xdsmpl.ini                    = 1
    xdwscRGB.icc                  = 1
    xdCMYKPrinter.icc             = 1
    xdwmark.dll                   = 1
    xdcolman.dll                  = 1
    xdbook.dll                    = 1
    xdnup.dll                     = 1
    xdsmplui.dll                  = 1
    xdscale.dll                   = 1
    
    [Strings]
    Location="XPSDrv Sample Driver Location"
    PR="mydriver"
    Microsoft="Microsoft"
    
    

    Please help me , what i doing wrong?

    Monday, August 22, 2016 8:24 AM

All replies

  • Looks for me like, like there is no need to add a new 'Driver Install Package' (item 3.a). Items 3.b / 3.c / 3.d / 3.e should be applied to already existant 'package' project.

    With kind regards 

    Thursday, August 25, 2016 9:28 PM