microsoft / microsoft/Windows-driver-samples

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

Open
#902 6 comments 0 reactions 1 assignee Claimed by @DavidKanz View on GitHub
help wanted
Dominant language
C
Stars
7.8k
Forks
5k
Avg merge
3d 17h
Merged PRs (30d)
7

Description

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](https://user-images.githubusercontent.com/17734395/221639734-52fb585c-156c-464b-a48d-7bb0183d2236.png)

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.