Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solution

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
12thFactor
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 05, 2020 9:18 pm

Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solution

Post by 12thFactor » Thu Nov 05, 2020 9:53 pm

Hi there everyone today I decided to move from version 2.4 to 2.5 but there was a problem with the installation.

On my machine I had version 2.4 previously installed I downloaded the client installer for version 2.5, after I installed it I noticed that another network adapter was also installed alongside TAP-Windows Adapter V9. Surprised by this I decided maybe this was because I have to do a clean install. Consequently, I uninstalled version 2.5 which I had just installed, but still the "OpenVPN Wintun" device remained behind. I decided to remove it using Windows 10 device manager including the driver.

But after that, when I tried to reinstall OpenVPN client 2.5 there was this error message:

OpenVPNMSICA: tap_create_adapter:
DiInstallDevice failed Error - 536870397:

No more explanations!

The resolution:
At first I was frustrated, but after I looked around a bit I figured it out and now I am sharing it here in case anyone else is having similar issues or problems.

Here is what to do: The device being installed which fails obviously is the network adapter, for the new Wintun device. So if you somehow could get it installed your problems would go away. This can be done in two ways:

1- You can simply open up the installer msi but this time choose to customize the installation. and after that select to not install the TAP-Windows6 and Wintun drivers. They are going to get installed, only this time you are not going to receive an error any longer. But obviously you are going to be missing a network interface. In order to take care of that open an Admin level command prompt and cd to OpenVPN\bin directory wherever you installed it. and then issue the command:

Code: Select all

tapctl create
This will create a network interface which you can remove using:

Code: Select all

tapctl delete DEVICE_ID
In such a scenario you will not get your Wintun network adapter back even using the command :

Code: Select all

tapctl.exe create --hwid wintun
Will produce the error:
DiInstallDevice failed
Error 0xe0000203
Creating TUN/TAP adapter failed (error 0xe0000203)

2- This is the most simple solution and will also get you your Wintun network device back. You have to simply reinstall wireguard https://www.wireguard.com/install/if you have had it previously installed.(remove it and then reinstall it) and after that try installing openvpn again with the derivers and there should be no problems.

Hope this helps anyone who is having similar issues.
Last edited by 12thFactor on Thu Nov 05, 2020 10:18 pm, edited 1 time in total.

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Thu Nov 05, 2020 10:01 pm

Are you saying that

installing OpenVPN to a Windows PC which already has Wireguard installed causes problems ?

12thFactor
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 05, 2020 9:18 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by 12thFactor » Thu Nov 05, 2020 10:09 pm

TinCanTech wrote:
Thu Nov 05, 2020 10:01 pm
Are you saying that

installing OpenVPN to a Windows PC which already has Wireguard installed causes problems ?
Yes, but quite very possibly not under normal circumstances, only if the driver for wireguard network adapter is not present on the machine or if it is manually removed from a machine that has wiregaurd installed but its driver is removed.
Consider my situation and how that error was produced on my machine.

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Thu Nov 05, 2020 10:52 pm

Would you be happy to report this to OpenVPN on github ?

https://github.com/OpenVPN/openvpn-build

12thFactor
OpenVpn Newbie
Posts: 3
Joined: Thu Nov 05, 2020 9:18 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by 12thFactor » Thu Nov 05, 2020 11:02 pm

TinCanTech wrote:
Thu Nov 05, 2020 10:52 pm
Would you be happy to report this to OpenVPN on github ?

https://github.com/OpenVPN/openvpn-build
Yes absolutely please feel free to do it, it is not about who would it it is about the problem being solved thanks, please . feel free to report it on github.
I am not on github.

unicornir
OpenVpn Newbie
Posts: 3
Joined: Sat Dec 26, 2020 4:49 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by unicornir » Sat Dec 26, 2020 5:00 pm

Hi!

I have the same problem in my Windows 10 v1607 build:14393.0. I notice this problem when I try to install new version of Windscribe. The installation goes till it reaches to 60%, and after some while it show this message:

An error occurred installing the TAP device driver: 2

Short story, after some digging, I found out the root problem is OpenVPN and I uninstall all of my VPN's and their TAP drivers also OpenVPN itself. Then try to install OpenVPN v2.5.0 x64 and I got another error message! Then I found out this topic and try this command: "tapctl create" but I get bellow message at CMD (in Admin mode):

tap_create_adapter: DiInstallDevice failed
Error 0x5b4: This operation returned because the timeout period expired.
Creating TUN/TAP adapter failed (error 0x5b4).


Now, I cannot install any of my VPN's!!! What I have done till now:
1) Uninstall all VPN's with Revo Uninstaller with their leftovers.
2) Use CCleaner + Disk Clean built-in Windows.
3) Restart many times!
4) Disable Comodo Firewall + Its HIPS completely (I am sure it is not the root of the problem)
5) I do not have "wireguard " as mentioned in the first post!
6) Disable all other network adapters in my network control panel except my main one, before I reinstall OpenVPN. (I found this solution on the net) (I have VMWare v15.5.6)

What can I do to solve this problem!?

Thanks in Advanced

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Sat Dec 26, 2020 5:08 pm

unicornir wrote:
Sat Dec 26, 2020 5:00 pm
What can I do to solve this problem!?
unicornir wrote:
Sat Dec 26, 2020 5:00 pm
Disable Comodo Firewall + Its HIPS completely
I would uninstall this ..

unicornir
OpenVpn Newbie
Posts: 3
Joined: Sat Dec 26, 2020 4:49 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by unicornir » Sat Dec 26, 2020 9:47 pm

TinCanTech wrote:
Sat Dec 26, 2020 5:08 pm
I would uninstall this ..
Well, as I pointed, Comodo is not a problem! To make sure, I try same Windows 10 Version on VMware virtual machine with Comodo on it and without any problems I could install OpenVPN v2.5.0 and new Windscribe v2.0 beta! So there should be another problem with my main machine Windows 10!!??

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Sun Dec 27, 2020 2:11 am

"If I have 5 exploding carrots and 3 of them explode then how many exploding pears do I have ?"

unicornir
OpenVpn Newbie
Posts: 3
Joined: Sat Dec 26, 2020 4:49 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by unicornir » Sun Dec 27, 2020 10:11 am

TinCanTech wrote:
Sun Dec 27, 2020 2:11 am
"If I have 5 exploding carrots and 3 of them explode then how many exploding pears do I have ?"
I am seeking for help here :idea: ! and not funny posts! :? :? :? :!: :?:

Is there any Admin's or OpenVPN programmers checking here!? I post the error message in my message. What can I do to solve the problem and be able to install OpenVPN and Windscribe on my system again.

desbest
OpenVpn Newbie
Posts: 17
Joined: Fri May 18, 2018 8:11 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by desbest » Sat Feb 20, 2021 12:32 am

unicornir wrote:
Sun Dec 27, 2020 10:11 am
TinCanTech wrote:
Sun Dec 27, 2020 2:11 am
"If I have 5 exploding carrots and 3 of them explode then how many exploding pears do I have ?"
I am seeking for help here :idea: ! and not funny posts! :? :? :? :!: :?:

Is there any Admin's or OpenVPN programmers checking here!? I post the error message in my message. What can I do to solve the problem and be able to install OpenVPN and Windscribe on my system again.

I believe that TinCanTech is saying metaphorically and colloquially, that just because something solves part of a problem or fails to solve it in a particular circumstance, doesn't mean that it cannot solve your problem in your specific circumstance, or there's no other things to consider to solve the problem completely (ie. your specific circumstance). In your case, your antivirus (Comodo), so you should try out the suggestion given, rather than to say "it works in my virtual machine".


sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Wed Dec 01, 2021 8:33 am

Hello!
I get exactly the same (== 536870397) error code when trying to install v2.5.4 on vanilla win7/64.
("vanilla" means - no antiviruses or any other 3rd party code, only the native win7 stuff - untweaked)

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Wed Dec 01, 2021 1:16 pm

Please post your install log C:\Windows\inf\setupapi.dev.log

Only the last few days of it should be enough.

sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Thu Dec 02, 2021 9:36 am

Sorry for the layout, could not find the "spoiler" tag here...

Code: Select all

[Boot Session: 2021/12/01 10:54:32.407]

>>>  [Device Install (DiInstallDevice) - ROOT\NET\0000]
>>>  Section start 2021/12/01 11:08:17.555
      cmd: C:\Windows\system32\MsiExec.exe -Embedding B6D8C0C6854D62B58186741776B67AD1 M Global\MSI0000
     dvi: Set selected driver complete.
     dvi: Set selected driver complete.
     dvi: {Build Driver List} 11:08:17.556
     dvi:      Searching for hardware ID(s):
     dvi:           wintun
     cpy:      Policy is set to make all digital signatures equal.
     dvi:      Enumerating INFs from path list 'C:\Windows\inf'
     inf:      Searched 0 potential matches in published INF directory
     inf:      Searched 35 INFs in directory: 'C:\Windows\inf'
     dvi: {Build Driver List - exit(0x00000000)} 11:08:21.304
     dvi: {DIF_SELECTBESTCOMPATDRV} 11:08:21.304
     dvi:      CoInstaller 1: Enter 11:08:21.305
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 11:08:21.305
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 11:08:21.306
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 11:08:21.306
     dvi:      Class installer: Exit
     dvi:      Default installer: Enter 11:08:21.307
     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)} 11:08:21.403
<<<  Section end 2021/12/01 11:08:21.404
<<<  [Exit status: FAILURE(0xe0000203)]


>>>  [Device Install (DiInstallDevice) - ROOT\NET\0000]
>>>  Section start 2021/12/01 11:10:18.054
      cmd: C:\Windows\system32\MsiExec.exe -Embedding 520F59B75410D3C7832A29B1733CD0F5 M Global\MSI0000
     dvi: Set selected driver complete.
     dvi: Set selected driver complete.
     dvi: {Build Driver List} 11:10:18.055
     dvi:      Searching for hardware ID(s):
     dvi:           wintun
     cpy:      Policy is set to make all digital signatures equal.
     dvi:      Enumerating INFs from path list 'C:\Windows\inf'
     inf:      Searched 0 potential matches in published INF directory
     inf:      Searched 35 INFs in directory: 'C:\Windows\inf'
     dvi: {Build Driver List - exit(0x00000000)} 11:10:18.140
     dvi: {DIF_SELECTBESTCOMPATDRV} 11:10:18.140
     dvi:      CoInstaller 1: Enter 11:10:18.141
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 11:10:18.141
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 11:10:18.141
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 11:10:18.141
     dvi:      Class installer: Exit
     dvi:      Default installer: Enter 11:10:18.142
     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)} 11:10:18.143
<<<  Section end 2021/12/01 11:10:18.143
<<<  [Exit status: FAILURE(0xe0000203)]


>>>  [Device Install (Hardware initiated) - USB\VID_0483&PID_DF11\FFFFFFFEFFFF]
>>>  Section start 2021/12/01 15:19:25.340
     ump: Creating Install Process: DrvInst.exe 15:19:25.374
     ndv: Retrieving device info...
     ndv: Setting device parameters...
     ndv: Searching Driver Store and Device Path...
     dvi: {Build Driver List} 15:19:25.660
     dvi:      Searching for hardware ID(s):
     dvi:           usb\vid_0483&pid_df11&rev_2200
     dvi:           usb\vid_0483&pid_df11
     dvi:      Searching for compatible ID(s):
     dvi:           usb\class_fe&subclass_01&prot_02
     dvi:           usb\class_fe&subclass_01
     dvi:           usb\class_fe
     cpy:      Policy is set to make all digital signatures equal.
     dvi:      Enumerating INFs from path list 'C:\Windows\inf'
     inf:      Searched 0 potential matches in published INF directory
     inf:      Searched 35 INFs in directory: 'C:\Windows\inf'
     dvi: {Build Driver List - exit(0x00000000)} 15:19:26.135
     ndv: Selecting best match from Driver Store (including Device Path)...
     dvi: {DIF_SELECTBESTCOMPATDRV} 15:19:26.136
     dvi:      No class installer for 'STM32  BOOTLOADER'
     dvi:      No CoInstallers found
     dvi:      Default installer: Enter 15:19:26.136
     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)} 15:19:26.159
     ndv: Searching Windows Update for drivers... 15:19:26.189
     ndv: Acquired WU search serialization mutex. 15:19:26.189
     ndv: About to release WU search serialization mutex. 15:19:26.226
     ndv: No driver found on Windows Update. 15:19:26.226
     ndv: {Core Device Install} 15:19:26.228
!    ndv:      Installing NULL driver!
     dvi:      Set selected driver complete.
     dvi:      {DIF_ALLOW_INSTALL} 15:19:26.229
     dvi:           No class installer for 'STM32  BOOTLOADER'
     dvi:           Default installer: Enter 15:19:26.229
     dvi:           Default installer: Exit
     dvi:      {DIF_ALLOW_INSTALL - exit(0xe000020e)} 15:19:26.230
     dvi:      {DIF_INSTALLDEVICE} 15:19:26.230
     dvi:           No class installer for 'STM32  BOOTLOADER'
     dvi:           Default installer: Enter 15:19:26.231
!    dvi:                Installing NULL driver!
     dvi:                Writing common driver property settings.
     dvi:                {Restarting Devices} 15:19:26.310
     dvi:                     Restart: USB\VID_0483&PID_DF11\FFFFFFFEFFFF
     dvi:                     Restart complete.
     dvi:                {Restarting Devices exit} 15:19:26.364
     dvi:           Default installer: Exit
     dvi:      {DIF_INSTALLDEVICE - exit(0x00000000)} 15:19:26.365
     ndv:      Device install status=0xe0000203
     ndv:      Performing device install final cleanup...
!    ndv:      Queueing up error report since device installation failed...
     ndv: {Core Device Install - exit(0xe0000203)} 15:19:26.367
     ump: Server install process exited with code 0xe0000203 15:19:26.369
<<<  Section end 2021/12/01 15:19:26.372
<<<  [Exit status: FAILURE(0xe0000203)]

sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Thu Dec 02, 2021 11:20 am

My attempt to use the solution from the very first post here also failed:

Code: Select all

Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\PROGRA~1\OpenVPN\bin>dir
 Том в устройстве C не имеет метки.
 Серийный номер тома: 567A-3901

 Содержимое папки C:\PROGRA~1\OpenVPN\bin

2021-12-02  14:12    <DIR>          .
2021-12-02  14:12    <DIR>          ..
2021-10-20  10:23         3 482 288 libcrypto-1_1-x64.dll
2021-10-20  10:23            93 872 libpkcs11-helper-1.dll
2021-10-20  10:23           694 448 libssl-1_1-x64.dll
2021-10-20  10:23           121 008 lzo2.dll
2021-10-20  10:23           811 696 openvpn-gui.exe
2021-10-20  10:23           840 880 openvpn.exe
2021-10-20  10:23            64 176 openvpnserv.exe
2021-10-20  10:23            37 040 tapctl.exe
2021-09-10  12:24            97 152 vcruntime140.dll
               9 файлов      6 242 560 байт
               2 папок  81 250 205 696 байт свободно

C:\PROGRA~1\OpenVPN\bin>tapctl.exe create
tap_create_adapter: DiInstallDevice failed
Error 0xe0000203
Creating TUN/TAP adapter failed (error 0xe0000203).

C:\PROGRA~1\OpenVPN\bin>

sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Thu Dec 02, 2021 11:37 am

KloneBlake's advise helped me.

sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Thu Dec 02, 2021 11:44 am

Too early to rejoice... :(
When I try to establish a tunnel I get the...

Code: Select all

2021-12-02 14:42:11 open_tun
2021-12-02 14:42:11 CreateFile failed on tap-windows6 device: \\.\Global\{1D7A6C47-3E55-4568-A779-F4B4BE2AC5EE}.tap
2021-12-02 14:42:11 MANAGEMENT: Client disconnected
2021-12-02 14:42:11 All tap-windows6 adapters on this system are currently in use or disabled.
2021-12-02 14:42:11 Exiting due to fatal error

User avatar
TinCanTech
Forum Team
Posts: 10201
Joined: Fri Jun 03, 2016 1:17 pm

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by TinCanTech » Thu Dec 02, 2021 1:24 pm

Did you ever get a TAP Adapter to install ? If not, you could try wintun ?

sextant
OpenVpn Newbie
Posts: 8
Joined: Wed Dec 01, 2021 8:29 am

Re: Error during installation of windows client OpenVPN 2.5.0 amd64 OpenVPNMSICA tap_create_adapter Error 536870397 solu

Post by sextant » Thu Dec 02, 2021 4:08 pm

I do not know. I just run the MSI file.
After the KloneBlake's trick I did not see any error messages during the installation. But the VPN does not work.

Locked