microsoft/Windows-driver-samples

Building XPSDrvSmpl VS Code 2019 Enterprise and Unable to install .INF

Open

#902 创建于 2023年2月27日

在 GitHub 查看
 (6 评论) (0 反应) (1 负责人)C (4,896 fork)batch import
help wanted

仓库指标

Star
 (6,432 star)
PR 合并指标
 (平均合并 26天 4小时) (30 天内合并 7 个 PR)

描述

Visual Studio Version 16 VisualStudioVersion = 16.0.33328.57

Windows Driver Kit - Windows 10.0.19041.685 Windows SDK - 10.0.19041.685

I am able to build the XPSDrvSmpl for x64 but I am unable to install the driver. These are the steps that I take to install the driver:

  • I build the driver for x64 and it creates a package folder and package.cer
  • I install the package.cer certificate file
  • I got Device Manager -> Print queues
  • Select Action -> Add Legacy Hardware
  • Hit Next in the Wizard and select Install the hardware that I manually select from list (Advanced
  • Select Printers from Common hardware types
  • For Use an existing port choose FILE (Print to file)
  • Choose Have Disk... and select the INF file for Copy manufacturers files from
  • Select OK

I get the following error: image

Does anyone how to get around this or the correct steps for deploying and testing a driver on your local machine. Any help is appreciated - thanks!

贡献者指南