Page 1 of 1

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

Posted: Thu Nov 05, 2020 9:53 pm
by 12thFactor
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.

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

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

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

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

Posted: Thu Nov 05, 2020 10:09 pm
by 12thFactor
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.

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

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

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

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

Posted: Thu Nov 05, 2020 11:02 pm
by 12thFactor
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.

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

Posted: Sat Dec 26, 2020 5:00 pm
by unicornir
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

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

Posted: Sat Dec 26, 2020 5:08 pm
by TinCanTech
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 ..

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

Posted: Sat Dec 26, 2020 9:47 pm
by unicornir
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!!??

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

Posted: Sun Dec 27, 2020 2:11 am
by TinCanTech
"If I have 5 exploding carrots and 3 of them explode then how many exploding pears do I have ?"

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

Posted: Sun Dec 27, 2020 10:11 am
by unicornir
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.

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

Posted: Sat Feb 20, 2021 12:32 am
by desbest
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".

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

Posted: Sat Feb 20, 2021 5:08 am
by TinCanTech