Here is how I got mine to work.
0. cd to the build folder
C:\Temp\VirtualSerial\ComPort\x64\Release\virtualserial>
1. First install the driver using the devcon command, it will fail.
Devcon command is
devcon install virtualserial.inf UMDF\VirtualSerial
2. Check device manager, you will see it show up as Unknown Device, or COM# with an exclamation mark.
3. Right click on it -> Update Driver -> browse my computer for driver software -> let me pick from a list of available drivers on my computer
4. Now on my machine it shows
Microsoft VirtualSerial User-Mode Device Sample
and beneath it, it shows
This driver is digitally signed
.
5. Now, if you click on Have Disk, and browse to any of the virtualserial.inf files in the sample, it changes to
This driver is not digitally signed
You don't want this, so if you did this, cancel and go back to step 3
6. click Next, and you should see the
Microsoft VirtualSerial User-Mode Device Sample (COM#)
under Ports in Device Manager.
Notice, you can install this driver multiple times, and each time it will give you a different port number
Some additional steps to debugging for anyone reading.
1. Make sure you are building x64 if you are using an x64 system. I got both Debug and Release to work
2. Make sure you are running devcon from the virtualserial folder inside the Release or Debug folder. Because this folder contains the WudfUpdate_01011.dll file
3. If you cannot get it to show this driver is Digitally Signed at any point, grabt he Digicert utility from here:
https://www.digicert.com/util/DigiCertUtil.exe you may see that the internet explorer installation method has an exclamation mark next to it. Right click on it, and digicert will describe the problem and offer to fix it. Alternatively you can also use digiert to import the virtualserial.cer file from the respective Release folder.
4. Finally, check the devcon logs, they are located in:
C:\Windows\INF\setupapi.dev.log
You are looking for a WHQL signature.
5. Lastly, try building and installing the project without making any modifications to it first, we are of course talking about this project
Windows-driver-samples/serial/VirtualSerial at master · Microsoft/Windows-driver-samples · GitHub[
^]
Thanks for the information you've provided. You should turn this into an instructional page from your question.