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
Code: Select all
tapctl delete DEVICE_ID
Code: Select all
tapctl.exe create --hwid wintun
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.