Custom tap adapter install not working

How to customize and extend your OpenVPN installation.
Post Reply
Veinder55
OpenVpn Newbie
Posts: 4
Joined: Fri Oct 18, 2019 11:51 am

Custom tap adapter install not working

Post by Veinder55 » Mon Oct 21, 2019 7:25 am

I have been trying to install a custom tap adapter using the tap-windows6 repos on github (https://github.com/OpenVPN/tap-windows6) on windows 10. After building a custom tapinstall and replacing my inf file I tried to use the tapinstall command with a custom id.

I have changed everything in OemVista.inf to the correct hardware ID. While trying this i have not signed the driver or generated the cat files, so I understand why it would fail in this case. However, after using the cross sign script to generate the catalog file I noticed that my .sys file is missing, meaning I cannot sign the .sys file because it is non existent.

I think the tapinstall is supposed to generate a .sys file for me when I try to run it the first time with it not being signed but as I mentioned earlier that install keeps failing. That is why I am asking for help on here,why is my tapinstall not working and why am I missing a .sys file. I have tried looking for information on just about anywhere but I can't seem to find any information regarding this problem.

Thanks in advance.

Veinder55
OpenVpn Newbie
Posts: 4
Joined: Fri Oct 18, 2019 11:51 am

Re: Custom tap adapter install not working

Post by Veinder55 » Thu Oct 24, 2019 12:49 pm

Since I have not been getting any responses, here is the setupapi.dev.log,


>>> [Device Install (UpdateDriverForPlugAndPlayDevices) - tapremote0901]
>>> Section start 2019/10/24 14:57:07.321
cmd: "C:\tap-windows6\dist\amd64\tapinstall.exe" install OemVista.inf tapremote0901
ndv: INF path: C:\tap-windows6\dist\amd64\OemVista.inf
ndv: Install flags: 0x00000001
ndv: {Update Device Driver - ROOT\NET\0002}
ndv: Search options: 0x00000080
ndv: Searching single INF 'C:\tap-windows6\dist\amd64\OemVista.inf'
dvi: {Build Driver List} 14:57:07.352
dvi: Searching for hardware ID(s):
dvi: tapremote0901
dvi: {Build Driver List - exit(0x00000000)} 14:57:07.430
! ndv: No matching drivers found in single INF
dvi: {DIF_SELECTBESTCOMPATDRV} 14:57:07.430
dvi: Default installer: Enter 14:57:07.430
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed
! dvi: Error 0xe0000228: There are no compatible drivers for this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:57:07.462
! ndv: Unable to select best compatible driver. Error = 0xe0000228
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No better matching drivers found for device 'ROOT\NET\0002'.
ndv: {Update Device Driver - ROOT\NET\0004}
ndv: Search options: 0x00000080
ndv: Searching single INF 'C:\tap-windows6\dist\amd64\OemVista.inf'
dvi: {Build Driver List} 14:57:07.493
dvi: Searching for hardware ID(s):
dvi: tapremote0901
dvi: {Build Driver List - exit(0x00000000)} 14:57:07.508
! ndv: No matching drivers found in single INF
dvi: {DIF_SELECTBESTCOMPATDRV} 14:57:07.524
dvi: Default installer: Enter 14:57:07.524
dvi: {Select Best Driver}
! dvi: Selecting driver failed(0xe0000228)
dvi: {Select Best Driver - exit(0xe0000228)}
! dvi: Default installer: failed
! dvi: Error 0xe0000228: There are no compatible drivers for this device.
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 14:57:07.540
! ndv: Unable to select best compatible driver. Error = 0xe0000228
ndv: No drivers found for device.
ndv: {Update Device Driver - exit(00000103)}
! ndv: No better matching drivers found for device 'ROOT\NET\0004'.
! ndv: No devices were updated.
<<< Section end 2019/10/24 14:57:07.571
<<< [Exit status: FAILURE(0x00000103)]

What I am trying to do is build a custom tap adapter for my application. It can not find any drivers as you see. But I do not know how I can build a .sys file because it is missing that. I do not want to create another instance of an already existing tap adapter, I want to build one on a new hardware id. In the openvpn documentation of the repo referred to in the original post above there is no information on how to build it on a separate hardware id and I can not find anything on the internet.

Post Reply