Win 7 64bit TAP driver issues

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
ottrya13
OpenVpn Newbie
Posts: 2
Joined: Wed Mar 19, 2014 2:05 pm

Win 7 64bit TAP driver issues

Post by ottrya13 » Wed Mar 19, 2014 2:20 pm

I have googled nearly every way to try and install the TAP driver required for VPN functionality.
I am running Windows 7 64bit Service Pack 1, , with all the latest Windows updates and all my drivers and the BIOS are up to date as well.
When installing the 2.3.2-I003-x86-64 version of OpenVPN, and previous versions as well, windows encounters and error when installing the TAP driver.
The error itself displays:
"TAP-Windows 9.9.2 Setup"
"An error occured installing the TAP device driver."
When running the standalone 9.9.2_3.exe the log displays as follows:

"We are running on a 64-bit system.
Output folder: C:\Program Files\TAP-Windows\bin
Extract: devcon.exe... 100%
Output folder: C:\Program Files\TAP-Windows\driver
Extract: OemWin2k.inf... 100%
Extract: tap0901.cat... 100%
Extract: tap0901.sys... 100%
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TAP-Windows\Utilities
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TAP-Windows\Utilities\Add a new TAP virtual ethernet adapter.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\TAP-Windows\Utilities\Delete ALL TAP virtual ethernet adapters.lnk
Output folder: C:\Program Files\TAP-Windows\include
Extract: tap-windows.h... 100%
Output folder: C:\Program Files\TAP-Windows
Extract: license.txt... 100%
Extract: icon.ico... 100%
devcon.exe hwids returned: 0
TAP install (tap0901) (May require confirmation)
Device node created. Install is complete when drivers are installed...
Updating drivers for tap0901 from C:\Program Files\TAP-Windows\driver\OemWin2k.inf.
devcon.exe failed.
devcon.exe returned: 2
devcon.exe cumulative status: 2
Created uninstaller: C:\Program Files\TAP-Windows\Uninstall.exe
Completed"

I have tried running as Administrator, and in Compatibility mode for Windows XP and Vista. I have also tried running "Disable Driver Signature Enforcement" from boot mode and no luck. I have also tried installing other VPNs and they always encounter the TAP driver error. What is wrong? Please help.

ottrya13
OpenVpn Newbie
Posts: 2
Joined: Wed Mar 19, 2014 2:05 pm

Re: Win 7 64bit TAP driver issues

Post by ottrya13 » Thu Mar 20, 2014 12:51 am

Yes I have tried installing the individual TAP driver installers but it always fail on devcon.exe (as administrator).

The result in running "delete ALL TAP virtual Ethernet drivers as administrator was as follows:

C:\Windows\System32>echo WARNING: this script will delete ALL TAP virtual adapters <use the device manager to delete adapters one at a time>
C:\Windows\system32>pause (press any key)
C:\Windows\system32>"C:\Program files\TAP-windows\bin\devcon.exe" remove tap0901
No devices were removed
C:\windows\system32>pause (press any key)

Result in running "Add a new TAP virtual ethernet adapter" process as administrator was:
C:\Windows\system32>rem Add a new TAP virtual ethernet adapter
C:\Windows\system32>"C:\Program Files\TAP-windows\bin\devcon.exe" install "C:\Program Files\TAP-Windows\driver\0emWin2k.inf" tap0901
Device node created. Install is complete when drivers are installed...
Updating drivers for tap0901 from C:\Program Files\TAP-Windows\driver\0emWin2k.inf.
devcon.exe failed.
C:\Windows\system32>pause (press any key)

sarpalan
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 25, 2014 3:41 pm

Re: Win 7 64bit TAP driver issues

Post by sarpalan » Tue Mar 25, 2014 3:45 pm

I am also facing this exact problem. Your inputs will be really helpful.
I deleted the TAP interface using 'C:\Program Files\TAP-Windows\bin\Delete all TAP virtual ethernet adapters' before getting into this situation.

sarpalan
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 25, 2014 3:41 pm

Re: Win 7 64bit TAP driver issues

Post by sarpalan » Thu Mar 27, 2014 10:13 am

My problem is solved after following the suggestion posted in this thread.
topic7663.html

>>
In our case, running McAfee software left the registry on our Win7 machine in a bad state. Cleaning out the "ghost" network interfaces with the tool at https://skydrive.live.com/redir?resid=8 ... PB4O4uVxek allowed us to install the TAP device driver without any further issues.
<<

I think, this is one of the weak links (I see many people hit this problem when I google it.) which needs to be documented clearly in openssh documentation.

Post Reply