Tapinstall failed error, Building tap adapter on custom hardware ID not working (missing .sys)

0

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.

This is the setup.dev log I get when I try to install the tap adapter.

>>> [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.

windows
driver
openvpn
tap
devcon
asked on Stack Overflow Oct 25, 2019 by reinder vis • edited Dec 9, 2019 by sɐunıɔןɐqɐp

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0