Skip to content

How to rename TAP-Windows Adapter V9? #172

Description

@Zhirui-Zhang

Hello, I'm trying to change default adapter name from TAP-Windows Adapter V9 to another one to avoid collision. I tried to modify version.m4 file like this:

dnl define the TAP version
define([PRODUCT_NAME], [MyTest])
define([PRODUCT_PACKAGE_NAME], [mytest])
define([PRODUCT_PUBLISHER], [OpenVPN Technologies, Inc.])
define([PRODUCT_VERSION], [9.27.0])
define([PRODUCT_VERSION_RESOURCE], [9,27,0,0])
define([PRODUCT_TAP_WIN_COMPONENT_ID], [testtest])
define([PRODUCT_TAP_WIN_MAJOR], [9])
define([PRODUCT_TAP_WIN_MINOR], [27])
define([PRODUCT_TAP_WIN_REVISION], [0])
define([PRODUCT_TAP_WIN_BUILD], [0])
define([PRODUCT_TAP_WIN_PROVIDER], [MyTest Provider])
define([PRODUCT_TAP_WIN_CHARACTERISTICS], [0x1])
define([PRODUCT_TAP_WIN_DEVICE_DESCRIPTION], [MyTest Adapter])
define([PRODUCT_TAP_WIN_RELDATE], [02/27/2024])

Then I compiled this project successfully with command

python2 buildtap.py --ti=devcon --sdk=WDK -b -p

got these files in dist/amd64 folder

OemVista.inf
tapinstall.exe
testtest.cat
testtest.sys

When I input command .\tapinstall.exe install .\OemVista.inf testtest as Administrator, got this error

Device node created. Install is complete when drivers are installed...
Updating drivers for testtest from D:\workspace\TAP-Windows\tap-windows6\dist\amd64\OemVista.inf.
tapinstall.exe failed

Tried to find solution but still failed, what else could I do, thanks for help!

Btw, I tried to follow instructions provided in OemVista.inf, but I cannot find files like openvpn.nsi, SOURCES, common.h, service.h, is this file outdated or just my compilation error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions