Page 1 of 1

An error occurred installing TAP device center

Posted: Wed Sep 18, 2013 10:14 pm
by laco09
Hello,

"An error occurred installing TAP device center"

I'm having this problem during the install of openvpn.... I've tried everything so i came here to have some help.

I'm on Windows 7 64 bits. please :).

Re: An error occurred installing TAP device center

Posted: Wed Sep 18, 2013 11:07 pm
by raptorjp
Are you installing with the 686 executable?
Try to run as admin, to see if that helps.

Re: An error occurred installing TAP device center

Posted: Thu Sep 19, 2013 11:23 am
by laco09
I already tried this, still get the message during the install

Re: An error occurred installing TAP device center

Posted: Fri Sep 20, 2013 2:28 am
by raptorjp
What does it say right before you get the error? Is a dialog box that pops up and that is the only message? If I remember correctly there is a status log that displays what is happening. Maybe post this?

A while ago I had a similar problem on XP.

Disable antivirus?
Disable UAC?

Are you reinstalling or upgrading a previous openvpn installation? If so, make sure everything is deleted before reinstall.

Re: An error occurred installing TAP device center

Posted: Fri Sep 20, 2013 6:47 am
by laco09
....
Extract: INSTALL -win32.txt... 100%
Extract: COPYRIGHT.GPL... 100%
Extract: icon.ico... 100%
tapinstall hwids returned: 0
TAP UPDATE
Updating drivers for tap0901 from C:\Program Files (x86)\OpenVPN\driver\Oemwin2k.inf.
tapinstall.exe failed
tapinstall update returned: 2
tapinstall cumulative status: 2

.......

Re: An error occurred installing TAP device center

Posted: Fri Sep 20, 2013 4:19 pm
by raptorjp
laco09 wrote:....
Extract: INSTALL -win32.txt... 100%
Extract: COPYRIGHT.GPL... 100%
Extract: icon.ico... 100%
tapinstall hwids returned: 0
TAP UPDATE
Updating drivers for tap0901 from C:\Program Files (x86)\OpenVPN\driver\Oemwin2k.inf.
tapinstall.exe failed
tapinstall update returned: 2
tapinstall cumulative status: 2

.......
That looks interesting. Why are you installing into the x86 directory? I am running win7 64 and it installs into the non-x86 directory. Did you completely delete the program files(x86)/openvpn directory before you tried to reinstall?

Do a complete uninstall and delete any openvpn directories. Then use the current stable version (not the x86_64 but the x686 version). Maybe it is looking there first when it is either not in that location or there is an older installation that you have.

Re: An error occurred installing TAP device center

Posted: Thu Oct 03, 2013 8:04 pm
by dmarlatt
Experienced this error on Windows Home x64

OpenVPN installation: Unable to install TUN/TAP driver. Exit code 2

Noticed the Network Adapters was empty under "Change Adapters Settings" even though the adapter was running and working.

Locate and then delete the following registry subkey:

HKEY_LOCAL-MACHINE\SYSTEM\CurrentControlSet\Control\Network\Config

Re: An error occurred installing TAP device center

Posted: Fri Apr 17, 2015 12:35 am
by mmangus
I'm having the exact same problem. I tried looking for the indicated subkey but its not there. I deleted the \Program Files (x86)\OpenVPN directory as I'm running Windows x64 as well. I also noticed it is attempting and failing to create a device every time I run the install the result is an "unknown device" under Network Adapters in Device Manager.

The exact text of the error message is:

Unable to install TUN/TAP driver. Exit code: 2

Re: An error occurred installing TAP device center

Posted: Thu Oct 19, 2017 11:54 am
by openvpnuser2000
The same problem for me

Re: An error occurred installing TAP device center

Posted: Thu Oct 19, 2017 4:27 pm
by openvpnuser2000
In safe mode I also get error installing TAP device

Re: An error occurred installing TAP device center

Posted: Fri Oct 20, 2017 7:43 am
by openvpnuser2000
I have done everything that I find in internet.

I don`t have antivirus software, windows defender is also disabled.
I have tried manually install TAP driver, use different versions - nothing works.

Re: An error occurred installing TAP device center

Posted: Tue Jul 03, 2018 9:56 pm
by eneerge
So, I've had this issue numerous times and I just had it again. However, the fix I posted on the official bug report here https://community.openvpn.net/openvpn/ticket/592 worked again for me.

I stopped all virtualization software and kicked off the install again (didnt even have to reboot). The install went through just fine. The only virtualization software I use is VirtualBox and Sandboxie. I stopped Virtualbox machines and closed all Sandboxie Sandboxes.

It's most likely a driver conflict with another software. It's easily reproducible by just using the above software. I'm guessing it's mostly Sandboxie in my case. It may be something similar for everyone else. Check all of the services you have running in services.msc. Another way to try and help diagnose it would be using Process Monitor to monitor any errors that appear to come from the installer while you're installing.

BTW, this was with the latest version as of July 3, 2018: 2.4.6.