none
Cannot compile XPSDrvSmpl RRS feed

  • Question

  • Hello,

    I am trying to compile the XPSDrvSmpl following the instructions. From what I can find online the Signability Test failed usually occurs when one forgets to add the install folder items to the project. However for me, I can't seem to get the dll's of the referenced project to copy over. I am using Visual Studio Community 2017 with WDK 10.0.16292.1001 to try compile this project but get the following result:

    Inf2Cat Tool Output:
    ........................................
    Signability test failed.
    
    Errors:
    22.9.1: xdsmplui.dll in [configplugin] of package\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.dll in [xpsdrvsample] of package\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.dll in [xpsdrvsample] of package\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.dll in [xpsdrvsample] of package\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.dll in [xpsdrvsample] of package\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: xdscale.dll in [xpsdrvsample] of package\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:
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_pre_vista in section [standard.ntx86] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_pre_vista in section [standard.ntia64] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_pre_vista in section [standard.ntamd64] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_vista in section [standard.ntx86.6.0] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_vista in section [standard.ntia64.6.0] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_vista in section [standard.ntamd64.6.0] of package\xdsmpl.inf
    22.9.3: Missing hardware ID (cannot have just compatible ID) in line xpsdrv sample driver=install_xdsmpl_filters_vista in section [standard.ntarm64.6.0] of package\xdsmpl.inf
    

    I have added the files in the /install folder to the Driver Files folder inside the package project and also referenced everything but the INF file in all configurations inside Properties -> Configuration Properties -> Driver Install -> Package Files.

    The projects are also referenced when right clicking on the package project -> Add -> Reference.

    And finally the xdsmpl.inf

    ;
    ; 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=%ProviderString%
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=10/17/2008,6.1.6930.0
    CatalogFile=XpsDrvSmpl.cat
    
    [Manufacturer]
    %ManufacturerName%=Standard,NTx86,NTia64,NTamd64,NTx86.6.0,NTia64.6.0,NTamd64.6.0,NTarm64.6.0
    
    [Standard.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA
    
    [Standard.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA
    
    [Standard.NTamd64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA
    
    [Standard.NTx86.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA
    
    [Standard.NTia64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA
    
    [Standard.NTamd64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA
    
    [Standard.NTarm64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA
    
    [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}
    
    [PrinterPackageInstallation.arm64]
    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
    
    [SourceDisksNames.arm64]
    1 = %Location%,,
    2 = %Location%,,,arm64
    
    [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                   = 2
    xdcolman.dll                  = 2
    xdbook.dll                    = 2
    xdnup.dll                     = 2
    xdsmplui.dll                  = 2
    xdscale.dll                   = 2
    
    [Strings]
    Location="XPSDrv Sample Driver Location"
    ManufacturerName="TODO-Set-Manufacturer"
    ProviderString = "TODO-Set-Provider"



    Any help into fixing this issue?

    Thanks,

    Monday, April 23, 2018 7:22 AM