TAP install failing on Windows 7

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!
mewing
OpenVpn Newbie
Posts: 4
Joined: Tue Mar 20, 2012 9:14 pm

TAP install failing on Windows 7

Post by mewing » Wed Mar 21, 2012 6:15 pm

I'm trying to install OpenVPN v. 2.2.2 on my PC running Windows 7 Home Premium (64 bit). The installer says the install is successful, but the log shows that the TAP device failed to install.

The full log is below, but here are the critical lines:
...
TAP INSTALL (tap0901)
Device node created. Install is complete when drivers are installed...
Updating drivers for tap0901 from C:\Program Files (x86)\OpenVPN\driver\OemWin2k.inf.
tapinstall.exe failed.
tapinstall install returned: 2
tapinstall cumulative status: 2
...
I've tried running the installer as Administrator and booting my PC with the "Disable Driver Signature Enforcement" option, but neither of these fixes the problem. Any suggestions?

Here's the entire log:
Previous Service REMOVE (if exists)
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: openvpn.exe... 100%
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: openvpn-gui-1.0.3.exe... 100%
Output folder: C:\Program Files (x86)\OpenVPN\easy-rsa
Extract: openssl-1.0.0.cnf... 100%
Extract: vars.bat.sample... 100%
Extract: init-config.bat
Extract: README.txt... 100%
Extract: build-ca.bat... 100%
Extract: build-dh.bat... 100%
Extract: build-key-server.bat... 100%
Extract: build-key.bat... 100%
Extract: build-key-pkcs12.bat... 100%
Extract: clean-all.bat... 100%
Extract: index.txt.start
Extract: revoke-full.bat... 100%
Extract: serial.start
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: openvpnserv.exe... 100%
Output folder: C:\Program Files (x86)\OpenVPN\config
Output folder: C:\Program Files (x86)\OpenVPN\sample-config
Extract: sample.ovpn... 100%
Extract: client.ovpn... 100%
Extract: server.ovpn... 100%
Create folder: C:\Program Files (x86)\OpenVPN\log
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: libeay32.dll... 100%
Extract: ssleay32.dll... 100%
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: openssl.exe... 100%
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: libpkcs11-helper-1.dll... 100%
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: lzo2.dll... 100%
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: msvcr90.dll... 100%
Extract: Microsoft.VC90.CRT.manifest... 100%
We are running on a 64-bit system.
Output folder: C:\Program Files (x86)\OpenVPN\bin
Extract: tapinstall.exe... 100%
Output folder: C:\Program Files (x86)\OpenVPN\driver
Extract: OemWin2k.inf... 100%
Extract: tap0901.sys... 100%
Extract: tap0901.cat... 100%
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Uninstall OpenVPN.lnk
Output folder: C:\Program Files (x86)\OpenVPN
Extract: INSTALL-win32.txt... 100%
Extract: COPYRIGHT.GPL... 100%
Extract: icon.ico... 100%
tapinstall hwids returned: 0
TAP REMOVE OLD TAP
No devices were removed.
tapinstall remove TAP0801 returned: 0
TAP INSTALL (tap0901)
Device node created. Install is complete when drivers are installed...
Updating drivers for tap0901 from C:\Program Files (x86)\OpenVPN\driver\OemWin2k.inf.
tapinstall.exe failed.
tapinstall install returned: 2
tapinstall cumulative status: 2
Service INSTALL
OpenVPN Service installed.
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\OpenVPN GUI.lnk
Create shortcut: C:\Users\Public\Desktop\OpenVPN GUI.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\Add a new TAP virtual ethernet adapter.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\Delete ALL TAP virtual ethernet adapters.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN configuration file directory.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN log file directory.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN Sample Configuration Files.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\Generate a static OpenVPN key.lnk
Created uninstaller: C:\Program Files (x86)\OpenVPN\Uninstall.exe
Completed

mewing
OpenVpn Newbie
Posts: 4
Joined: Tue Mar 20, 2012 9:14 pm

Re: TAP install failing on Windows 7

Post by mewing » Thu Mar 22, 2012 6:16 pm

Some more information on my problem:

tapinstall.exe (aka devcon.exe) writes lots of log information to c:\Windows\inf\setupapi.dev.log. That's where I found this bit

Code: Select all

...
     ndv:           Installing device...
     dvi:           {DIF_INSTALLDEVICE} 11:09:12.568
     dvi:                CoInstaller 1: Enter 11:09:12.579
     cci:                     [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                     NdisCoinst: NetCfgInstanceId does not exist
     cci:                     NdisCoinst: Guid of the adapter is {92732522-55A0-482D-BF19-10BBD58A5EF4}
     inf:                     Opened PNF: 'C:\Windows\INF\oem41.inf' ([strings])
     cci:                     NdisCoinst: IfType from registry is 1
     cci:                     NdisCoinst: IfType 1, Characteristics 0x81, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                     NdisCoinst: Connection name is Local Area Connection 2
     cci:                     NdisCoinst: NetLuidIndex does not exist
!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
     cci:                     [NdisCoinst: Exit NcipHandleInstallPreProcessing]
!!!  dvi:                CoInstaller 1: failed(0x000005aa)!
!!!  dvi:                Error 1450: Insufficient system resources exist to complete the requested service.
     dvi:           {DIF_INSTALLDEVICE - exit(0x000005aa)} 11:09:12.701
!!!  ndv:           Error(000005aa) installing device!
...
Relevant, certainly, but not very enlightening. What resources are insufficient? I Googled error 1450 but it didn't get me much closer to understanding. Googling "CoInstaller 1: failed(0x000005aa)", however, got me a valuable hit, http://www.osronline.com/showthread.cfm?link=181873, where someone asks for help with a miniport install problem. This advised checking for a particular registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NDIS\IfTypes\[ifType]: IfUsedNetLuidIndices
which is supposed to be a bitmap of locally unique IDs that have been assigned to other interfaces.

In this instance the IfType is "1" as the log snippet above shows, and in my case, the value of that registry entry is a truckload of ffs (128 to be exact), which by all accounts is a bad sign. It supposedly means too many interfaces. I also learned that registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC 1-08002BE10318}
is supposed to list all interfaces on the system.

My registry lists 40 devices under this key, which is apparently not particularly extraordinary. Unfortunately, the helpful advice runs out at this point and reinstalling Windows is proposed as the best option. I'd very much like to avoid that if I can fix this some other way.

Any advice appreciated.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: TAP install failing on Windows 7

Post by janjust » Fri Mar 23, 2012 10:05 am

thanks for digging into this so deeply - this issue has been reported before but we've never been able to track it down.

Can you try installing/adding a tap-win32 adapter without using devcon.exe ? does that work?
it could also be an issue with the devcon.exe used - openvpn includes a 32bit version but there's also a 64bit version available
(e.g.
http://www.ryanvictory.com/posts/automa ... n-windows/)

can you try adding the tap-win32 adapter using that version ?

mewing
OpenVpn Newbie
Posts: 4
Joined: Tue Mar 20, 2012 9:14 pm

Re: TAP install failing on Windows 7

Post by mewing » Fri Mar 23, 2012 2:41 pm

Thanks for the reply janjust.

I tried both your suggestions. Ran hdwwiz.exe to try installing the driver via the hardware wizard. End result was the same as before, with the same errors showing in setupapi.dev.log. I also downloaded the 64-bit devcon.exe from the page you linked to. Again, the result was the same. Always tripping up as it tries to allocate the LUID to the new device.

I'm happy to attempt any other suggestions.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: TAP install failing on Windows 7

Post by janjust » Fri Mar 23, 2012 3:38 pm

just wondering: can you try this suggestion also:
http://geo.geek.nz/development/running- ... -programs/

it's something to do with the registry not being large enough....

mewing
OpenVpn Newbie
Posts: 4
Joined: Tue Mar 20, 2012 9:14 pm

Re: TAP install failing on Windows 7

Post by mewing » Mon Mar 26, 2012 3:08 pm

Well, I tried the RegistrySizeLimit tweek, but the same error occurs. It really does look to me like the IfUsedNetLuidIndices value is the root of my problems. I'm getting desperate to have this fixed. I'm going to try posting my problem on a Windows forum and see if anyone there knows a fix for this.

Will post an answer here if I find one.

Hugh
OpenVpn Newbie
Posts: 5
Joined: Tue Jul 03, 2012 7:35 am

Re: TAP install failing on Windows 7

Post by Hugh » Tue Jul 03, 2012 8:15 am

I seem to have a similar problem. Can you help me?

Context:
  • - I'm new to OpenVPN
    - I'm trying to install the client on my netbook under Win7 Starter (i.e. 32-bit Win7)
    - I downloaded the current stable Windows installer openvpn-2.2.2-install.exe from http://openvpn.net/index.php/open-sourc ... est-stable
    - when I installed, I got some (somewhat hidden) diagnostics like the OP
    - "ipconfig /all" does not show the desired device.
Here's from the log:

Code: Select all

TAP REMOVE OLD TAP
No devices were removed.
tapinstall remove TAP0801 returned: 0
TAP INSTALL (tap0901)
Device node created. Install is complete when drivers are installed...
Updating drivers for tap0901 from C:\Program Files\OpenVPN\driver\OemWin2k.inf.
tapinstall.exe failed.
tapinstall install returned: 2
tapinstall cumulative status: 2
Service INSTALL
c:\windows\inf\setupapi.dev.log is really large and seems to go back to before the machine was built! Anyway, the relevant part seems to start about 180k lines in!

At line 179643, the first transaction to go bad starts. It looks as if there is some certificate problem. Notice the things that the system annotated with one or more exclamation marks on the left.

Code: Select all

>>>  Section start 2012/07/03 02:53:16.758
      cmd: "C:\Program Files\OpenVPN\bin\tapinstall.exe" install "C:\Program Files\OpenVPN\driver\OemWin2k.inf" tap0901
     dvi: Set selected driver complete.
     dvi: {Build Driver List} 02:53:16.851
     dvi:      Searching for hardware ID(s):
     dvi:           tap0901
     cpy:      Policy is set to make all digital signatures equal.
     dvi:      Processing a single INF: 'c:\program files\openvpn\driver\oemwin2k.inf'
     inf:      Opened INF: 'c:\program files\openvpn\driver\oemwin2k.inf' ([strings])
     sig:      {_VERIFY_FILE_SIGNATURE} 02:53:16.882
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = c:\program files\openvpn\driver\oemwin2k.inf
     sig:           Catalog  = c:\program files\openvpn\driver\tap0901.cat
     flq:           {SPFILENOTIFY_CABINETINFO}
     flq:           {SPFILENOTIFY_CABINETINFO - exit(0x00000000)}
     flq:           {SPFILENOTIFY_FILEEXTRACTED}
     flq:           {SPFILENOTIFY_FILEEXTRACTED - exit(0x00000000)}
!    sig:           Verifying file against specific (valid) catalog failed! (0x800b0109)
!    sig:           Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 02:53:17.132
     sig:      {_VERIFY_FILE_SIGNATURE} 02:53:17.148
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = c:\program files\openvpn\driver\oemwin2k.inf
     sig:           Catalog  = c:\program files\openvpn\driver\tap0901.cat
     sig:           Success: File is signed in Authenticode(tm) catalog.
     sig:           Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 02:53:17.288
     sig:                          Key      = oemwin2k.inf
     sig:                          FilePath = C:\Windows\System32\DriverStore\Temp\{23250d54-d365-1013-7696-7565a62f0655}\oemwin2k.inf
     sig:                          Catalog  = C:\Windows\System32\DriverStore\Temp\{23250d54-d365-1013-7696-7565a62f0655}\tap0901.cat
     flq:                          {SPFILENOTIFY_CABINETINFO}
     flq:                          {SPFILENOTIFY_CABINETINFO - exit(0x00000000)}
     flq:                          {SPFILENOTIFY_FILEEXTRACTED}
     flq:                          {SPFILENOTIFY_FILEEXTRACTED - exit(0x00000000)}
     flq:                          {SPFILENOTIFY_CABINETINFO}
     flq:                          {SPFILENOTIFY_CABINETINFO - exit(0x00000000)}
     flq:                          {SPFILENOTIFY_FILEEXTRACTED}
     flq:                          {SPFILENOTIFY_FILEEXTRACTED - exit(0x00000000)}
     sig:                          Success: File is signed in Authenticode(tm) catalog.
     sig:                          Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
     sig:                     {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 02:53:18.926
     sto:                     Validating driver package files against catalog 'tap0901.cat'.
!!!  sto:                     Driver package signer is unknown and user does not trust the signer.
!!!  ndv:                     Driver package failed signature validation. Error = 0xE0000243
     sto:                {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE exit(0xe0000243)} 02:53:28.099
!!!  sto:                Driver package failed signature verification. Error = 0xE0000243
!!!  sto:                Failed to import driver package into Driver Store. Error = 0xE0000243
     sto:           {Stage Driver Package: exit(0xe0000243)} 02:53:28.130
!!!  sto:           Failed to stage driver package to Driver Store. Error = 0xE0000243, Time = 10015 ms
     sto:      {Import Driver Package: exit(0xe0000243)} 02:53:28.161
     inf:      Opened INF: 'c:\program files\openvpn\driver\oemwin2k.inf' ([strings])
!    inf:      Add to Driver Store unsuccessful
!    inf:      Error 0xe0000243: The publisher of an Authenticode(tm) signed catalog was not established as trusted.
!!!  inf:      returning failure to SetupCopyOEMInf
     inf: {SetupCopyOEMInf exit (0xe0000243)} 02:53:28.738
!!!  ndv: Driver Package import failed for new device...installing NULL driver.
!!!  ndv: Error 0xe0000243: The publisher of an Authenticode(tm) signed catalog was not established as trusted.

Hugh
OpenVpn Newbie
Posts: 5
Joined: Tue Jul 03, 2012 7:35 am

Re: TAP install failing on Windows 7

Post by Hugh » Thu Jul 05, 2012 3:47 am

My problem was solved by using "run as administrator" to execute the installer. The error message sure didn't suggest this.

yon
OpenVpn Newbie
Posts: 1
Joined: Thu Aug 09, 2012 12:16 pm

Re: TAP install failing on Windows 7

Post by yon » Thu Aug 09, 2012 12:20 pm

Me too. I have try many openvpn version. an I have try setup bcdedit/set testsigning on in win7 x64.

but it still can not normal install. :idea:


[Device Install Log]
OS Version = 6.1.7601
Service Pack = 1.0
Suite = 0x0100
ProductType = 1
Architecture = amd64

[BeginLog]

[Boot Session: 2012/08/09 19:13:49.484]

>>> [Device Install (UpdateDriverForPlugAndPlayDevices) - tap0901]
>>> Section start 2012/08/09 19:41:34.170
cmd: "C:\Program Files (x86)\OpenVPN\bin\tapinstall.exe" install "C:\Program Files (x86)\OpenVPN\driver\OemWin2k.inf" tap0901
dvi: Set selected driver complete.
dvi: {Build Driver List} 19:41:34.195
dvi: Searching for hardware ID(s):
dvi: tap0901
cpy: Policy is set to make all digital signatures equal.
dvi: Processing a single INF: 'c:\program files (x86)\openvpn\driver\oemwin2k.inf'
inf: Opened INF: 'c:\program files (x86)\openvpn\driver\oemwin2k.inf' ([strings])
sig: {_VERIFY_FILE_SIGNATURE} 19:41:34.201
sig: Key = oemwin2k.inf
sig: FilePath = c:\program files (x86)\openvpn\driver\oemwin2k.inf
sig: Catalog = c:\program files (x86)\openvpn\driver\tap0901.cat
! sig: Verifying file against specific (valid) catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 19:41:34.792
sig: {_VERIFY_FILE_SIGNATURE} 19:41:34.797
sig: Key = oemwin2k.inf
sig: FilePath = c:\program files (x86)\openvpn\driver\oemwin2k.inf
sig: Catalog = c:\program files (x86)\openvpn\driver\tap0901.cat
sig: Success: File is signed in Authenticode(tm) catalog.
sig: Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 19:41:34.879
dvi: Created Driver Node:
dvi: HardwareID - tap0901
dvi: InfName - c:\program files (x86)\openvpn\driver\oemwin2k.inf
dvi: DevDesc - TAP-Win32 Adapter V9
dvi: DrvDesc - TAP-Win32 Adapter V9
dvi: Provider - TAP-Win32 Provider V9
dvi: Mfg - TAP-Win32 Provider V9
dvi: ModelsSec - tap0901.NTamd64
dvi: InstallSec - tap0901.ndi
dvi: ActualSec - tap0901.ndi
dvi: Rank - 0x00ff0000
dvi: Signer - OpenVPN Technologies, Inc.
dvi: Signer Score - Authenticode
dvi: DrvDate - 04/19/2010
dvi: Version - 9.0.0.7
dvi: {Build Driver List - exit(0x00000000)} 19:41:34.892
dvi: {DIF_SELECTBESTCOMPATDRV} 19:41:34.892
dvi: Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
dvi: Class installer == NetCfgx.dll,NetClassInstaller
dvi: Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
dvi: CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
dvi: CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
dvi: CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
dvi: CoInstaller 1: Enter 19:41:34.907
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:34.908
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:34.909
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:34.910
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:34.911
dvi: {Select Best Driver}
dvi: Selected driver installs from section [tap0901.ndi] in 'c:\program files (x86)\openvpn\driver\oemwin2k.inf'.
dvi: Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [TAP-Win32 Adapter V9]
dvi: InfFile - [c:\program files (x86)\openvpn\driver\oemwin2k.inf]
dvi: Section - [tap0901.ndi]
dvi: Signer - [OpenVPN Technologies, Inc.]
dvi: Rank - [0x00ff0000]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 19:41:34.927
inf: {SetupCopyOEMInf: c:\program files (x86)\openvpn\driver\oemwin2k.inf} 19:41:34.929
! inf: Package was already in store: skipping Driver Store add
inf: Driver Store location: C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
inf: Published Inf Path: C:\Windows\INF\oem35.inf
inf: OEM source media location: c:\program files (x86)\openvpn\driver\
inf: {SetupCopyOEMInf exit (0x00000000)} 19:41:35.202
dvi: Searching for hardware ID(s):
dvi: tap0901
inf: Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf' ([strings])
sig: {_VERIFY_FILE_SIGNATURE} 19:41:35.208
sig: Key = oemwin2k.inf
sig: FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
sig: Catalog = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\tap0901.cat
! sig: Verifying file against specific (valid) catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 19:41:35.224
sig: {_VERIFY_FILE_SIGNATURE} 19:41:35.225
sig: Key = oemwin2k.inf
sig: FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
sig: Catalog = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\tap0901.cat
sig: Success: File is signed in Authenticode(tm) catalog.
sig: Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 19:41:35.281
dvi: Selected driver installs from section [tap0901.ndi] in 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf'.
dvi: Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
dvi: Set selected driver complete.
dvi: {Plug and Play Service: Device Install for ROOT\NET\0000}
ump: Creating Install Process: DrvInst.exe 19:41:35.291
ndv: Infpath=C:\Windows\INF\oem35.inf
ndv: DriverNodeName=oemwin2k.inf:tap0901.NTamd64:tap0901.ndi:9.0.0.7:tap0901
ndv: DriverStorepath=C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
ndv: Building driver list from driver node strong name...
dvi: Searching for hardware ID(s):
dvi: tap0901
inf: Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf' ([strings])
sig: {_VERIFY_FILE_SIGNATURE} 19:41:35.332
sig: Key = oemwin2k.inf
sig: FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
sig: Catalog = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\tap0901.cat
! sig: Verifying file against specific (valid) catalog failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 19:41:35.441
sig: {_VERIFY_FILE_SIGNATURE} 19:41:35.441
sig: Key = oemwin2k.inf
sig: FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf
sig: Catalog = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\tap0901.cat
sig: Success: File is signed in Authenticode(tm) catalog.
sig: Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000242)} 19:41:35.550
dvi: Selected driver installs from section [tap0901.ndi] in 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf'.
dvi: Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
dvi: Set selected driver complete.
ndv: {Core Device Install} 19:41:35.558
inf: Opened PNF: 'C:\Windows\INF\oem35.inf' ([strings])
dvi: {DIF_ALLOW_INSTALL} 19:41:35.574
dvi: Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
dvi: Class installer == NetCfgx.dll,NetClassInstaller
dvi: Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
dvi: CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
dvi: CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
dvi: CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
dvi: CoInstaller 1: Enter 19:41:35.582
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:35.582
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:35.589
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:35.589
inf: Opened PNF: 'C:\Windows\INF\oem35.inf' ([strings])
inf: AddReg=tap0901.reg (oem35.inf line 90)
inf: AddReg=tap0901.params.reg (oem35.inf line 91)
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:35.613
dvi: Default installer: Exit
dvi: {DIF_ALLOW_INSTALL - exit(0xe000020e)} 19:41:35.621
ndv: Installing files...
dvi: {DIF_INSTALLDEVICEFILES} 19:41:35.621
dvi: CoInstaller 1: Enter 19:41:35.621
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:35.660
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:35.660
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:35.667
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:35.667
dvi: {Install FILES}
inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf' ([strings])
inf: {Install Inf Section [tap0901.ndi]}
inf: CopyFiles=tap0901.driver,tap0901.files (oemwin2k.inf line 89)
cpy: Open PnpLockdownPolicy: Err=2. This is OK. Use LockDownPolicyDefault
flq: QueueSingleCopy...
flq: Inf : 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf'
flq: SourceInf: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf'
flq: SourceSection: [sourcedisksfiles]
flq: Source root path based on SourceInf
flq: SourceRootPath: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7'
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000400
flq: {FILE_QUEUE_COPY}
flq: CopyStyle - 0x00000400
flq: SourceRootPath - 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7'
flq: SourceFilename - 'tap0901.sys'
flq: TargetDirectory- 'C:\Windows\system32\DRIVERS'
flq: TargetFilename - 'tap0901.sys'
flq: SourceDesc - 'TAP-Win32 Adapter V9'
flq: SourceTagfile - 'tap0901.sys'
flq: {FILE_QUEUE_COPY exit(0x00000000)}
flq: {FILE_QUEUE_COPY exit(0x00000000)}
! inf: Empty Section! [tap0901.files]
inf: {Install Inf Section [tap0901.ndi] exit (0x00000000)}
dvi: Processing co-installer registration section [tap0901.ndi.CoInstallers].
inf: {Install Inf Section [tap0901.ndi.CoInstallers]}
inf: {Install Inf Section [tap0901.ndi.CoInstallers] exit (0x00000000)}
dvi: Co-installers registered.
dvi: {Install INTERFACES}
dvi: Installing section [tap0901.ndi.Interfaces]
dvi: {Install INTERFACES exit 00000000}
dvi: {Install FILES exit (0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_INSTALLDEVICEFILES - exit(0x00000000)} 19:41:35.691
ndv: Pruning file queue...
dvi: {_SCAN_FILE_QUEUE}
flq: ScanQ flags=620
flq: SPQ_SCAN_PRUNE_COPY_QUEUE
flq: SPQ_SCAN_FILE_COMPARISON
flq: SPQ_SCAN_ACTIVATE_DRP
flq: ScanQ number of copy nodes=1
flq: File 'C:\Windows\system32\DRIVERS\tap0901.sys' pruned from copy.
sig: Using catalog 'C:\Windows\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oem35.CAT'.
! sig: VerifyTrustFailed for C:\Windows\system32\DRIVERS\tap0901.sys.
! sig: Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
cpy: DrpSetRegFileProt 'C:\Windows\system32\DRIVERS\tap0901.sys' Status=0 Class=OEM Legacy
flq: ScanQ action=200 DoPruning=32
flq: ScanQ end Validity flags=620 CopyNodes=0
dvi: {_SCAN_FILE_QUEUE exit(0, 0x00000000)}
ndv: Committing file queue...
flq: {_commit_file_queue}
flq: CommitQ DelNodes=0 RenNodes=0 CopyNodes=0
flq: CommitQ early exit: No nodes are queued
flq: {_commit_file_queue exit OK}
ndv: Registering CoInstallers...
dvi: {DIF_REGISTER_COINSTALLERS} 19:41:35.769
dvi: CoInstaller 1: Enter 19:41:35.769
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:35.769
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:35.777
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:35.777
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:35.777
inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf' ([strings])
inf: {Install Inf Section [tap0901.ndi.CoInstallers]}
inf: {Install Inf Section [tap0901.ndi.CoInstallers] exit (0x00000000)}
dvi: {DIF_DESTROYPRIVATEDATA} 19:41:35.785
dvi: CoInstaller 1: Enter 19:41:35.785
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:35.785
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:35.785
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:35.792
dvi: Class installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 19:41:35.792
dvi: Co-installers registered.
dvi: Default installer: Exit
dvi: {DIF_REGISTER_COINSTALLERS - exit(0x00000000)} 19:41:35.792
ndv: Installing interfaces...
dvi: {DIF_INSTALLINTERFACES} 19:41:35.792
dvi: Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
dvi: CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
dvi: CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
dvi: CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
dvi: CoInstaller 1: Enter 19:41:35.800
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:35.800
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:35.808
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:35.808
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:35.808
dvi: {Install INTERFACES}
inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_6a925e1e4fb6f3f7\oemwin2k.inf' ([strings])
dvi: Installing section [tap0901.ndi.Interfaces]
dvi: {Install INTERFACES exit 00000000}
dvi: Default installer: Exit
dvi: {DIF_INSTALLINTERFACES - exit(0x00000000)} 19:41:35.808
ndv: Installing device...
dvi: {DIF_INSTALLDEVICE} 19:41:35.816
dvi: CoInstaller 1: Enter 19:41:35.816
cci: [NdisCoinst: Enter NcipHandleInstallPreProcessing]
cci: NdisCoinst: NetCfgInstanceId does not exist
cci: NdisCoinst: Guid of the adapter is {E25A6751-F3DA-4E58-B57E-27C93924E342}
inf: Opened PNF: 'C:\Windows\INF\oem35.inf' ([strings])
cci: NdisCoinst: IfType from registry is 1
cci: NdisCoinst: IfType 1, Characteristics 0x81, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
cci: NdisCoinst: Connection name is 本地连接 33
cci: NdisCoinst: NetLuidIndex does not exist
!!! cci: NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
cci: [NdisCoinst: Exit NcipHandleInstallPreProcessing]
!!! dvi: CoInstaller 1: failed(0x000005aa)!
!!! dvi: Error 1450: Insufficient system resources exist to complete the requested service.
dvi: {DIF_INSTALLDEVICE - exit(0x000005aa)} 19:41:36.981
!!! ndv: Error(000005aa) installing device!
ndv: Device install status=0x000005aa
ndv: Performing device install final cleanup...
! ndv: Queueing up error report since device installation failed...
ndv: {Core Device Install - exit(0x000005aa)} 19:41:36.985
dvi: {DIF_DESTROYPRIVATEDATA} 19:41:36.986
dvi: CoInstaller 1: Enter 19:41:36.986
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:36.988
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:36.989
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:36.990
dvi: Class installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 19:41:36.992
ump: Server install process exited with code 0x000005aa 19:41:36.998
ump: {Plug and Play Service: Device Install exit(000005aa)}
ndv: Device Install failed for new device...installing NULL driver.
dvi: {Plug and Play Service: Device Install for ROOT\NET\0000}
ump: Creating Install Process: DrvInst.exe 19:41:37.013
! ndv: Installing NULL driver!
dvi: Set selected driver complete.
dvi: {DIF_ALLOW_INSTALL} 19:41:37.299
dvi: Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
dvi: Class installer == NetCfgx.dll,NetClassInstaller
dvi: Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
dvi: CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
dvi: CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
dvi: CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
dvi: CoInstaller 1: Enter 19:41:37.318
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.319
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.320
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.322
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:37.324
dvi: Default installer: Exit
dvi: {DIF_ALLOW_INSTALL - exit(0xe000020e)} 19:41:37.325
dvi: {DIF_INSTALLDEVICE} 19:41:37.326
dvi: CoInstaller 1: Enter 19:41:37.329
cci: [NdisCoinst: Enter NcipHandleInstallPreProcessing]
cci: [NdisCoinst: Enter NcipSetNewDeviceInstall]
cci: NdisCoinst: Succesfully set NewDeviceInstall to 0
cci: [NdisCoinst: Exit NcipSetNewDeviceInstall]
cci: NdisCoinst: Null driver install
cci: [NdisCoinst: Exit NcipHandleInstallPreProcessing]
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.335
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.337
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.338
cci: [NCI BEGIN INSTALL DEVICE for ROOT\NET\0000]
cci: NCI: Null driver install.
cci: NCI: NewDeviceInstall is 0. Assuming this is an update
dvi: {DIF_REMOVE} 19:41:37.342
dvi: CoInstaller 1: Enter 19:41:37.345
cci: [NdisCoinst: Enter NcipHandleRemovePreProcessing]
cci: [NdisCoinst: Exit NcipHandleRemovePreProcessing]
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.348
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.352
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.355
cci: [NCI BEGIN REMOVE DEVICE for ROOT\NET\0000]
cci: [NCI: BEGIN STORE EXTERNAL RESOURCE INFO]
cci: NCI: IfType=1
cci: NCI: NetcfgInstanceId(GUID)={E25A6751-F3DA-4E58-B57E-27C93924E342}
cci: [NCI: END STORE EXTERNAL RESOURCE INFO]
dvi: {Remove DEVICE}
dvi: InstanceID = 'ROOT\NET\0000'
dvi: Devnode Status = 0x01802001
dvi: CM_Query_And_Remove_Subtree_Ex returns 0x00000000
dvi: Devnode Status after CM_Query_And_Remove_Subtree_Ex = 0x01802401
dvi: Query-and-Remove succeeded
dvi: {Delete DEVICE}
dvi: Device Instance uninstalled.
dvi: {Delete DEVICE exit (0x00000000)}
dvi: {Remove DEVICE exit (0x00000000)}
cci: NCI:Delayed Cleanup not required.. DevInstallParams.Flags=0x00800000
cci: NCI: Notifying binding engine of removal
cci: NCI: INetCfg UnInstaller Interface asking for write lock with timeout = 2000 ms. 19:41:37.439
cci: NCI: INetCfg UnInstaller Interface acquired write lock. 19:41:37.441
cci: NCI: Exit INetCfg::Initialize, hr = 00000000x. 19:41:37.443
cci: NCI: Init Notify Object for ms_ndiscap
cci: NCI: Init Notify Object for ms_ndiscap complete
cci: NCI: Init Notify Object for ms_server
cci: NCI: Init Notify Object for ms_server complete
cci: NCI: Init Notify Object for ms_steelhead
cci: NCI: Init Notify Object for ms_steelhead complete
cci: NCI: Init Notify Object for ms_rassrv
cci: NCI: Init Notify Object for ms_rassrv complete
cci: NCI: Init Notify Object for ms_msclient
cci: NCI: Init Notify Object for ms_msclient complete
cci: NCI: Init Notify Object for ms_agilevpn
cci: NCI: Init Notify Object for ms_agilevpn complete
cci: NCI: Init Notify Object for ms_tcpip6
cci: NCI: Init Notify Object for ms_tcpip6 complete
cci: NCI: Init Notify Object for ms_tcpip
cci: NCI: Init Notify Object for ms_tcpip complete
cci: NCI: Init Notify Object for ms_pppoe
cci: NCI: Init Notify Object for ms_pppoe complete
cci: NCI: Init Notify Object for ms_pptp
cci: NCI: Init Notify Object for ms_pptp complete
cci: NCI: Init Notify Object for ms_l2tp
cci: NCI: Init Notify Object for ms_l2tp complete
cci: NCI: Init Notify Object for ms_ndiswan
cci: NCI: Init Notify Object for ms_ndiswan complete
cci: NCI: Init Notify Object for ms_sstp
cci: NCI: Init Notify Object for ms_sstp complete
cci: [NCI: BEGIN Release Externally Managed Resources]
cci: NCI: IfType=1
cci: NCI: NetcfgInstanceId(GUID)={E25A6751-F3DA-4E58-B57E-27C93924E342}
! cci: !NCI: IfType Present, NetLuidIndex NOT Present. pszPnpID= ROOT\NET\0000
cci: NCI: Successfully deleted Connection Registry Key for GUID={E25A6751-F3DA-4E58-B57E-27C93924E342}
cci: [NCI: END Release Externally Managed Resources]
cci: NCI: Enter INetCfg::Uninitialize. 19:41:37.903
cci: NCI: Exit INetCfg::Uninitialize, hr = 00000000x. 19:41:37.903
cci: NCI: INetCfg UnInstaller Interface Released write lock. 19:41:37.903
cci:

cci: NCI: Exit INetCfgLock::ReleaseWriteLock, hr = 00000000x 19:41:37.903
cci: [NCI END REMOVE DEVICE for ROOT\NET\0000. Result 0x00000000]
dvi: Class installer: Exit
dvi: CoInstaller 1: Enter (Post Processing) 19:41:37.911
cci: [NdisCoinst: Enter NcipHandleRemovePostProcessing]
cci: [NdisCoinst: Exit NcipHandleRemovePostProcessing]
dvi: CoInstaller 1: Exit (Post Processing)
dvi: {DIF_REMOVE - exit(0x00000000)} 19:41:37.911
cci: [NCI END INSTALL DEVICE for ROOT\NET\0000]
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:37.918
!!! dvi: Error obtaining device ID!
!!! dvi: Cleaning up failed installation (00000006)
! dvi: Failed to set Config Flags property: 0x00000020
! dvi: Error 0xe000020b: The device instance does not exist in the hardware tree.
!!! dvi: Default installer: failed!
!!! dvi: Error 6: The handle is invalid.
dvi: {DIF_INSTALLDEVICE - exit(0x00000006)} 19:41:37.918
dvi: {DIF_DESTROYPRIVATEDATA} 19:41:37.918
dvi: CoInstaller 1: Enter 19:41:37.918
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.926
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.926
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.926
dvi: Class installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 19:41:37.926
ump: Server install process exited with code 0x00000006 19:41:37.934
ump: {Plug and Play Service: Device Install exit(00000006)}
dvi: {Build Driver List} 19:41:37.934
! dvi: Driver list already built
dvi: {Build Driver List - exit(0x00000000)} 19:41:37.934
dvi: {DIF_SELECTBESTCOMPATDRV} 19:41:37.942
dvi: CoInstaller 1: Enter 19:41:37.942
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.942
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.942
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.942
dvi: Class installer: Exit
dvi: Default installer: Enter 19:41:37.942
dvi: {Select Best Driver}
dvi: Selected driver installs from section [tap0901.ndi] in 'c:\program files (x86)\openvpn\driver\oemwin2k.inf'.
dvi: Class GUID of device changed to: {4d36e972-e325-11ce-bfc1-08002be10318}.
dvi: {DIF_DESTROYPRIVATEDATA} 19:41:37.950
dvi: CoInstaller 1: Enter 19:41:37.950
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.950
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.950
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.950
dvi: Class installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 19:41:37.958
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [TAP-Win32 Adapter V9]
dvi: InfFile - [c:\program files (x86)\openvpn\driver\oemwin2k.inf]
dvi: Section - [tap0901.ndi]
dvi: Signer - [OpenVPN Technologies, Inc.]
dvi: Rank - [0x00ff0000]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 19:41:37.958
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 19:41:37.965
dvi: Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
dvi: Class installer == NetCfgx.dll,NetClassInstaller
dvi: Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
dvi: CoInstaller 1 == nci.dll,NciDeviceInstall
dvi: Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
dvi: CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
dvi: Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
dvi: CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
dvi: CoInstaller 1: Enter 19:41:37.981
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.981
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.981
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.981
!!! dvi: Class installer: failed(0xe000020b)!
!!! dvi: Error 0xe000020b: The device instance does not exist in the hardware tree.
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020b)} 19:41:37.989
dvi: {DIF_DESTROYPRIVATEDATA} 19:41:37.989
dvi: CoInstaller 1: Enter 19:41:37.989
dvi: CoInstaller 1: Exit
dvi: CoInstaller 2: Enter 19:41:37.989
dvi: CoInstaller 2: Exit
dvi: CoInstaller 3: Enter 19:41:37.989
dvi: CoInstaller 3: Exit
dvi: Class installer: Enter 19:41:37.997
dvi: Class installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 19:41:37.997
<<< Section end 2012/08/09 19:41:37.997
<<< [Exit status: SUCCESS]

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Wed Dec 04, 2013 6:16 pm

I'm trying to install OpenVPN 2.3.2, or tap-windows-9.9.2_3.exe from OpenVPN Downloads page to a Windows 64-bit PC, and in both cases get the same error as reported above.

Image

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Wed Dec 04, 2013 6:56 pm

Nothing from this Manual hints can help with the issue. Here is Devcon.exe log for the latest Tap-Windows driver install. As you can see, the errors are exactly the same as a year ago, looks like nothing was done to fix them for so long:

Code: Select all

[Device Install Log]
     OS Version = 6.1.7601
     Service Pack = 1.0
     Suite = 0x0100
     ProductType = 1
     Architecture = amd64

[BeginLog]

[Boot Session: 2013/12/03 06:26:06.626]

>>>  [Device Install (UpdateDriverForPlugAndPlayDevices) - tap0901]
>>>  Section start 2013/12/04 13:46:36.774
      cmd: "C:\Program Files\TAP-Windows\bin\devcon.exe" install "C:\Program Files\TAP-Windows\driver\OemWin2k.inf" tap0901
     dvi: Set selected driver complete.
     dvi: {Build Driver List} 13:46:36.825
     dvi:      Searching for hardware ID(s):
     dvi:           tap0901
     cpy:      Policy is set to make all digital signatures equal.
     dvi:      Processing a single INF: 'c:\program files\tap-windows\driver\oemwin2k.inf'
     inf:      Opened INF: 'c:\program files\tap-windows\driver\oemwin2k.inf' ([strings])
     sig:      {_VERIFY_FILE_SIGNATURE} 13:46:36.830
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = c:\program files\tap-windows\driver\oemwin2k.inf
     sig:           Catalog  = c:\program files\tap-windows\driver\tap0901.cat
!    sig:           Verifying file against specific (valid) catalog failed! (0x800b0109)
!    sig:           Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 13:46:36.922
     sig:      {_VERIFY_FILE_SIGNATURE} 13:46:36.922
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = c:\program files\tap-windows\driver\oemwin2k.inf
     sig:           Catalog  = c:\program files\tap-windows\driver\tap0901.cat
     sig:           Success: File is signed in Authenticode(tm) catalog.
     sig:           Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 13:46:36.955
     dvi:      Created Driver Node:
     dvi:           HardwareID   - tap0901
     dvi:           InfName      - c:\program files\tap-windows\driver\oemwin2k.inf
     dvi:           DevDesc      - TAP-Windows Adapter V9
     dvi:           DrvDesc      - TAP-Windows Adapter V9
     dvi:           Provider     - TAP-Windows Provider V9
     dvi:           Mfg          - TAP-Windows Provider V9
     dvi:           ModelsSec    - tap0901.NTamd64
     dvi:           InstallSec   - tap0901.ndi
     dvi:           ActualSec    - tap0901.ndi
     dvi:           Rank         - 0x00ff0000
     dvi:           Signer       - OpenVPN Technologies, Inc.
     dvi:           Signer Score - Authenticode
     dvi:           DrvDate      - 07/02/2012
     dvi:           Version      - 9.0.0.9
     dvi: {Build Driver List - exit(0x00000000)} 13:46:36.962
     dvi: {DIF_SELECTBESTCOMPATDRV} 13:46:36.962
     dvi:      Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
     dvi:      Class installer == NetCfgx.dll,NetClassInstaller
     dvi:      Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
     dvi:      CoInstaller 1 == nci.dll,NciDeviceInstall
     dvi:      Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
     dvi:      CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
     dvi:      Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
     dvi:      CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
     dvi:      CoInstaller 1: Enter 13:46:36.967
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 13:46:36.970
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 13:46:36.970
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 13:46:36.972
     dvi:      Class installer: Exit
     dvi:      Default installer: Enter 13:46:36.972
     dvi:           {Select Best Driver}
     dvi:                Selected driver installs from section [tap0901.ndi] in 'c:\program files\tap-windows\driver\oemwin2k.inf'.
     dvi:                Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
     dvi:                Set selected driver complete.
     dvi:                Selected:
     dvi:                     Description - [TAP-Windows Adapter V9]
     dvi:                     InfFile     - [c:\program files\tap-windows\driver\oemwin2k.inf]
     dvi:                     Section     - [tap0901.ndi]
     dvi:                     Signer      - [OpenVPN Technologies, Inc.]
     dvi:                     Rank        - [0x00ff0000]
     dvi:           {Select Best Driver - exit(0x00000000)}
     dvi:      Default installer: Exit
     dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 13:46:36.982
     inf: {SetupCopyOEMInf: c:\program files\tap-windows\driver\oemwin2k.inf} 13:46:36.982
!    inf:      Package was already in store: skipping Driver Store add
     inf:      Driver Store location: C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     inf:      Published Inf Path: C:\Windows\INF\oem122.inf
     inf:      OEM source media location: c:\program files\tap-windows\driver\
     inf: {SetupCopyOEMInf exit (0x00000000)} 13:46:37.105
     dvi: Searching for hardware ID(s):
     dvi:      tap0901
     inf: Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf' ([strings])
     sig: {_VERIFY_FILE_SIGNATURE} 13:46:37.162
     sig:      Key      = oemwin2k.inf
     sig:      FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     sig:      Catalog  = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\tap0901.cat
!    sig:      Verifying file against specific (valid) catalog failed! (0x800b0109)
!    sig:      Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     sig: {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 13:46:37.205
     sig: {_VERIFY_FILE_SIGNATURE} 13:46:37.205
     sig:      Key      = oemwin2k.inf
     sig:      FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     sig:      Catalog  = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\tap0901.cat
     sig:      Success: File is signed in Authenticode(tm) catalog.
     sig:      Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.
     sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 13:46:37.230
     dvi: Selected driver installs from section [tap0901.ndi] in 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf'.
     dvi: Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
     dvi: Set selected driver complete.
     dvi: {Plug and Play Service: Device Install for ROOT\NET\0001}
     ump:      Creating Install Process: DrvInst.exe 13:46:37.235
     ndv:      Infpath=C:\Windows\INF\oem122.inf
     ndv:      DriverNodeName=oemwin2k.inf:tap0901.NTamd64:tap0901.ndi:9.0.0.9:tap0901
     ndv:      DriverStorepath=C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     ndv:      Building driver list from driver node strong name...
     dvi:      Searching for hardware ID(s):
     dvi:           tap0901
     inf:      Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf' ([strings])
     sig:      {_VERIFY_FILE_SIGNATURE} 13:46:37.589
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     sig:           Catalog  = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\tap0901.cat
!    sig:           Verifying file against specific (valid) catalog failed! (0x800b0109)
!    sig:           Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 13:46:37.634
     sig:      {_VERIFY_FILE_SIGNATURE} 13:46:37.634
     sig:           Key      = oemwin2k.inf
     sig:           FilePath = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf
     sig:           Catalog  = C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\tap0901.cat
     sig:           Success: File is signed in Authenticode(tm) catalog.
     sig:           Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.
     sig:      {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 13:46:37.661
     dvi:      Selected driver installs from section [tap0901.ndi] in 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf'.
     dvi:      Class GUID of device remains: {4d36e972-e325-11ce-bfc1-08002be10318}.
     dvi:      Set selected driver complete.
     ndv:      {Core Device Install} 13:46:37.664
     inf:           Opened PNF: 'C:\Windows\INF\oem122.inf' ([strings])
     dvi:           {DIF_ALLOW_INSTALL} 13:46:37.691
     dvi:                Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
     dvi:                Class installer == NetCfgx.dll,NetClassInstaller
     dvi:                Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
     dvi:                CoInstaller 1 == nci.dll,NciDeviceInstall
     dvi:                Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
     dvi:                CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
     dvi:                Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
     dvi:                CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
     dvi:                CoInstaller 1: Enter 13:46:37.699
     dvi:                CoInstaller 1: Exit
     dvi:                CoInstaller 2: Enter 13:46:37.699
     dvi:                CoInstaller 2: Exit
     dvi:                CoInstaller 3: Enter 13:46:37.699
     dvi:                CoInstaller 3: Exit
     dvi:                Class installer: Enter 13:46:37.701
     inf:                     Opened PNF: 'C:\Windows\INF\oem122.inf' ([strings])
     inf:                     AddReg=tap0901.reg  (oem122.inf line 88)
     inf:                     AddReg=tap0901.params.reg  (oem122.inf line 89)
     dvi:                Class installer: Exit
     dvi:                Default installer: Enter 13:46:37.721
     dvi:                Default installer: Exit
     dvi:           {DIF_ALLOW_INSTALL - exit(0xe000020e)} 13:46:37.721
     ndv:           Installing files...
     dvi:           {DIF_INSTALLDEVICEFILES} 13:46:37.744
     dvi:                CoInstaller 1: Enter 13:46:37.744
     dvi:                CoInstaller 1: Exit
     dvi:                CoInstaller 2: Enter 13:46:37.746
     dvi:                CoInstaller 2: Exit
     dvi:                CoInstaller 3: Enter 13:46:37.746
     dvi:                CoInstaller 3: Exit
     dvi:                Class installer: Enter 13:46:37.746
     dvi:                Class installer: Exit
     dvi:                Default installer: Enter 13:46:37.749
     dvi:                     {Install FILES}
     inf:                          Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf' ([strings])
     inf:                          {Install Inf Section [tap0901.ndi]}
     inf:                               CopyFiles=tap0901.driver,tap0901.files  (oemwin2k.inf line 87)
     cpy:                               Open PnpLockdownPolicy: Err=2. This is OK. Use LockDownPolicyDefault
     flq:                               QueueSingleCopy...
     flq:                               Inf     : 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf'
     flq:                               SourceInf: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf'
     flq:                               SourceSection: [sourcedisksfiles]
     flq:                               Source root path based on SourceInf
     flq:                               SourceRootPath: 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc'
     flq:                               {FILE_QUEUE_COPY}
     flq:                                    CopyStyle      - 0x00000400
     flq:                                    {FILE_QUEUE_COPY}
     flq:                                         CopyStyle      - 0x00000400
     flq:                                         SourceRootPath - 'C:\Windows\System32\DriverStore\FileRepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc'
     flq:                                         SourceFilename - 'tap0901.sys'
     flq:                                         TargetDirectory- 'C:\Windows\system32\DRIVERS'
     flq:                                         TargetFilename - 'tap0901.sys'
     flq:                                         SourceDesc     - 'TAP-Windows Adapter V9'
     flq:                                         SourceTagfile  - 'tap0901.sys'
     flq:                                    {FILE_QUEUE_COPY exit(0x00000000)}
     flq:                               {FILE_QUEUE_COPY exit(0x00000000)}
!    inf:                               Empty Section! [tap0901.files]
     inf:                          {Install Inf Section [tap0901.ndi] exit (0x00000000)}
     dvi:                          Processing co-installer registration section [tap0901.ndi.CoInstallers].
     inf:                          {Install Inf Section [tap0901.ndi.CoInstallers]}
     inf:                          {Install Inf Section [tap0901.ndi.CoInstallers] exit (0x00000000)}
     dvi:                          Co-installers registered.
     dvi:                          {Install INTERFACES}
     dvi:                               Installing section [tap0901.ndi.Interfaces]
     dvi:                          {Install INTERFACES exit 00000000}
     dvi:                     {Install FILES exit (0x00000000)}
     dvi:                Default installer: Exit
     dvi:           {DIF_INSTALLDEVICEFILES - exit(0x00000000)} 13:46:37.779
     ndv:           Pruning file queue...
     dvi:           {_SCAN_FILE_QUEUE}
     flq:                ScanQ flags=620
     flq:                     SPQ_SCAN_PRUNE_COPY_QUEUE
     flq:                     SPQ_SCAN_FILE_COMPARISON
     flq:                     SPQ_SCAN_ACTIVATE_DRP
     flq:                ScanQ number of copy nodes=1
     flq:                File 'C:\Windows\system32\DRIVERS\tap0901.sys' pruned from copy.
     sig:                Using catalog 'C:\Windows\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oem122.CAT'.
!    sig:                VerifyTrustFailed for C:\Windows\system32\DRIVERS\tap0901.sys.
!    sig:                Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     cpy:                DrpSetRegFileProt 'C:\Windows\system32\DRIVERS\tap0901.sys' Status=0 Class=OEM Legacy
     flq:                ScanQ action=200 DoPruning=32
     flq:                ScanQ end Validity flags=620 CopyNodes=0
     dvi:           {_SCAN_FILE_QUEUE exit(0, 0x00000000)}
     ndv:           Committing file queue...
     flq:           {_commit_file_queue}
     flq:                CommitQ DelNodes=0 RenNodes=0 CopyNodes=0
     flq:                CommitQ early exit: No nodes are queued
     flq:           {_commit_file_queue exit OK}
     ndv:           Registering CoInstallers...
     dvi:           {DIF_REGISTER_COINSTALLERS} 13:46:37.959
     dvi:                CoInstaller 1: Enter 13:46:37.959
     dvi:                CoInstaller 1: Exit
     dvi:                CoInstaller 2: Enter 13:46:37.959
     dvi:                CoInstaller 2: Exit
     dvi:                CoInstaller 3: Enter 13:46:37.961
     dvi:                CoInstaller 3: Exit
     dvi:                Class installer: Enter 13:46:37.961
     dvi:                Class installer: Exit
     dvi:                Default installer: Enter 13:46:37.964
     inf:                     Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf' ([strings])
     inf:                     {Install Inf Section [tap0901.ndi.CoInstallers]}
     inf:                     {Install Inf Section [tap0901.ndi.CoInstallers] exit (0x00000000)}
     dvi:                     {DIF_DESTROYPRIVATEDATA} 13:46:37.966
     dvi:                          CoInstaller 1: Enter 13:46:37.966
     dvi:                          CoInstaller 1: Exit
     dvi:                          CoInstaller 2: Enter 13:46:37.969
     dvi:                          CoInstaller 2: Exit
     dvi:                          CoInstaller 3: Enter 13:46:37.969
     dvi:                          CoInstaller 3: Exit
     dvi:                          Class installer: Enter 13:46:37.969
     dvi:                          Class installer: Exit
     dvi:                     {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 13:46:37.969
     dvi:                     Co-installers registered.
     dvi:                Default installer: Exit
     dvi:           {DIF_REGISTER_COINSTALLERS - exit(0x00000000)} 13:46:37.971
     ndv:           Installing interfaces...
     dvi:           {DIF_INSTALLINTERFACES} 13:46:37.971
     dvi:                Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
     dvi:                CoInstaller 1 == nci.dll,NciDeviceInstall
     dvi:                Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
     dvi:                CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
     dvi:                Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
     dvi:                CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
     dvi:                CoInstaller 1: Enter 13:46:37.976
     dvi:                CoInstaller 1: Exit
     dvi:                CoInstaller 2: Enter 13:46:37.976
     dvi:                CoInstaller 2: Exit
     dvi:                CoInstaller 3: Enter 13:46:37.979
     dvi:                CoInstaller 3: Exit
     dvi:                Class installer: Enter 13:46:37.979
     dvi:                Class installer: Exit
     dvi:                Default installer: Enter 13:46:37.979
     dvi:                     {Install INTERFACES}
     inf:                          Opened PNF: 'c:\windows\system32\driverstore\filerepository\oemwin2k.inf_amd64_neutral_5a1fec2fbbccefcc\oemwin2k.inf' ([strings])
     dvi:                          Installing section [tap0901.ndi.Interfaces]
     dvi:                     {Install INTERFACES exit 00000000}
     dvi:                Default installer: Exit
     dvi:           {DIF_INSTALLINTERFACES - exit(0x00000000)} 13:46:37.984
     ndv:           Installing device...
     dvi:           {DIF_INSTALLDEVICE} 13:46:37.984
     dvi:                CoInstaller 1: Enter 13:46:37.984
     cci:                     [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                     NdisCoinst: NetCfgInstanceId does not exist
     cci:                     NdisCoinst: Guid of the adapter is {56B1231C-4E5D-48F2-9344-77E3D4E34C6A}
     inf:                     Opened PNF: 'C:\Windows\INF\oem122.inf' ([strings])
     cci:                     NdisCoinst: IfType from registry is 1
     cci:                     NdisCoinst: IfType 1, Characteristics 0x81, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                     NdisCoinst: Connection name is Local Area Connection
     cci:                     NdisCoinst: NetLuidIndex does not exist
!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
     cci:                     [NdisCoinst: Exit NcipHandleInstallPreProcessing]
!!!  dvi:                CoInstaller 1: failed(0x000005aa)!
!!!  dvi:                Error 1450: Insufficient system resources exist to complete the requested service.
     dvi:           {DIF_INSTALLDEVICE - exit(0x000005aa)} 13:46:38.036
!!!  ndv:           Error(000005aa) installing device!
     ndv:           Device install status=0x000005aa
     ndv:           Performing device install final cleanup...
!    ndv:           Queueing up error report since device installation failed...
     ndv:      {Core Device Install - exit(0x000005aa)} 13:46:38.041
     dvi:      {DIF_DESTROYPRIVATEDATA} 13:46:38.041
     dvi:           CoInstaller 1: Enter 13:46:38.041
     dvi:           CoInstaller 1: Exit
     dvi:           CoInstaller 2: Enter 13:46:38.041
     dvi:           CoInstaller 2: Exit
     dvi:           CoInstaller 3: Enter 13:46:38.044
     dvi:           CoInstaller 3: Exit
     dvi:           Class installer: Enter 13:46:38.044
     dvi:           Class installer: Exit
     dvi:      {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 13:46:38.044
     ump:      Server install process exited with code 0x000005aa 13:46:38.049
     ump: {Plug and Play Service: Device Install exit(000005aa)}
     ndv: Device Install failed for new device...installing NULL driver.
     dvi: {Plug and Play Service: Device Install for ROOT\NET\0001}
     ump:      Creating Install Process: DrvInst.exe 13:46:38.076
!    ndv:      Installing NULL driver!
     dvi:      Set selected driver complete.
     dvi:      {DIF_ALLOW_INSTALL} 13:46:38.094
     dvi:           Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
     dvi:           Class installer == NetCfgx.dll,NetClassInstaller
     dvi:           Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
     dvi:           CoInstaller 1 == nci.dll,NciDeviceInstall
     dvi:           Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
     dvi:           CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
     dvi:           Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
     dvi:           CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
     dvi:           CoInstaller 1: Enter 13:46:38.099
     dvi:           CoInstaller 1: Exit
     dvi:           CoInstaller 2: Enter 13:46:38.099
     dvi:           CoInstaller 2: Exit
     dvi:           CoInstaller 3: Enter 13:46:38.099
     dvi:           CoInstaller 3: Exit
     dvi:           Class installer: Enter 13:46:38.099
     dvi:           Class installer: Exit
     dvi:           Default installer: Enter 13:46:38.099
     dvi:           Default installer: Exit
     dvi:      {DIF_ALLOW_INSTALL - exit(0xe000020e)} 13:46:38.099
     dvi:      {DIF_INSTALLDEVICE} 13:46:38.099
     dvi:           CoInstaller 1: Enter 13:46:38.099
     cci:                [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                [NdisCoinst: Enter NcipSetNewDeviceInstall]
     cci:                NdisCoinst: Succesfully set NewDeviceInstall to 0
     cci:                [NdisCoinst: Exit NcipSetNewDeviceInstall]
     cci:                NdisCoinst: Null driver install
     cci:                [NdisCoinst: Exit NcipHandleInstallPreProcessing]
     dvi:           CoInstaller 1: Exit
     dvi:           CoInstaller 2: Enter 13:46:38.099
     dvi:           CoInstaller 2: Exit
     dvi:           CoInstaller 3: Enter 13:46:38.115
     dvi:           CoInstaller 3: Exit
     dvi:           Class installer: Enter 13:46:38.115
     cci:                [NCI BEGIN INSTALL DEVICE for ROOT\NET\0001]
     cci:                NCI: Null driver install.
     cci:                NCI: NewDeviceInstall is 0. Assuming this is an update
     dvi:                {DIF_REMOVE} 13:46:38.117
     dvi:                     CoInstaller 1: Enter 13:46:38.117
     cci:                          [NdisCoinst: Enter NcipHandleRemovePreProcessing]
     cci:                          [NdisCoinst: Exit NcipHandleRemovePreProcessing]
     dvi:                     CoInstaller 1: Exit
     dvi:                     CoInstaller 2: Enter 13:46:38.120
     dvi:                     CoInstaller 2: Exit
     dvi:                     CoInstaller 3: Enter 13:46:38.120
     dvi:                     CoInstaller 3: Exit
     dvi:                     Class installer: Enter 13:46:38.120
     cci:                          [NCI BEGIN REMOVE DEVICE for ROOT\NET\0001]
     cci:                          [NCI: BEGIN STORE EXTERNAL RESOURCE INFO]
     cci:                          NCI: IfType=1
     cci:                          NCI: NetcfgInstanceId(GUID)={56B1231C-4E5D-48F2-9344-77E3D4E34C6A}
     cci:                          [NCI: END STORE EXTERNAL RESOURCE INFO]
     dvi:                          {Remove DEVICE}
     dvi:                               InstanceID = 'ROOT\NET\0001'
     dvi:                               Devnode Status = 0x01802001
     dvi:                               CM_Query_And_Remove_Subtree_Ex returns 0x00000000
     dvi:                               Devnode Status after CM_Query_And_Remove_Subtree_Ex = 0x01802401
     dvi:                               Query-and-Remove succeeded
     dvi:                               {Delete DEVICE}
     dvi:                                    Device Instance uninstalled.
     dvi:                               {Delete DEVICE exit (0x00000000)}
     dvi:                          {Remove DEVICE exit (0x00000000)}
     cci:                          NCI:Delayed Cleanup not required.. DevInstallParams.Flags=0x00800000
     cci:                          NCI: Notifying binding engine of removal
     cci:                          NCI: INetCfg UnInstaller Interface asking for write lock with timeout = 2000 ms. 13:46:38.156
     cci:                          NCI: INetCfg UnInstaller Interface acquired write lock. 13:46:38.156
     cci:                          NCI: Exit INetCfg::Initialize, hr = 00000000x. 13:46:38.156
     cci:                          NCI: Init Notify Object for vmware_bridge
     cci:                          NCI: Init Notify Object for vmware_bridge complete
     cci:                          NCI: Init Notify Object for ms_ndiscap
     cci:                          NCI: Init Notify Object for ms_ndiscap complete
     cci:                          NCI: Init Notify Object for ms_rassrv
     cci:                          NCI: Init Notify Object for ms_rassrv complete
     cci:                          NCI: Init Notify Object for ms_server
     cci:                          NCI: Init Notify Object for ms_server complete
     cci:                          NCI: Init Notify Object for ms_steelhead
     cci:                          NCI: Init Notify Object for ms_steelhead complete
     cci:                          NCI: Init Notify Object for ms_msclient
     cci:                          NCI: Init Notify Object for ms_msclient complete
     cci:                          NCI: Init Notify Object for ms_l2tp
     cci:                          NCI: Init Notify Object for ms_l2tp complete
     cci:                          NCI: Init Notify Object for ms_agilevpn
     cci:                          NCI: Init Notify Object for ms_agilevpn complete
     cci:                          NCI: Init Notify Object for ms_sstp
     cci:                          NCI: Init Notify Object for ms_sstp complete
     cci:                          NCI: Init Notify Object for ms_ndiswan
     cci:                          NCI: Init Notify Object for ms_ndiswan complete
     cci:                          NCI: Init Notify Object for ms_tcpip
     cci:                          NCI: Init Notify Object for ms_tcpip complete
     cci:                          NCI: Init Notify Object for ms_tcpip6
     cci:                          NCI: Init Notify Object for ms_tcpip6 complete
     cci:                          NCI: Init Notify Object for ms_pptp
     cci:                          NCI: Init Notify Object for ms_pptp complete
     cci:                          NCI: Init Notify Object for ms_pppoe
     cci:                          NCI: Init Notify Object for ms_pppoe complete
     cci:                          [NCI: BEGIN Release Externally Managed Resources]
     cci:                          NCI: IfType=1
     cci:                          NCI: NetcfgInstanceId(GUID)={56B1231C-4E5D-48F2-9344-77E3D4E34C6A}
!    cci:                          !NCI: IfType Present, NetLuidIndex NOT Present. pszPnpID= ROOT\NET\0001
     cci:                          NCI: Successfully deleted Connection Registry Key for GUID={56B1231C-4E5D-48F2-9344-77E3D4E34C6A}
     cci:                          [NCI: END Release Externally Managed Resources]
     cci:                          NCI: Enter INetCfg::Uninitialize. 13:46:38.271
     cci:                          NCI: Exit INetCfg::Uninitialize, hr = 00000000x. 13:46:38.271
     cci:                          NCI: INetCfg UnInstaller Interface Released write lock. 13:46:38.273
     cci:                          

     cci:                          NCI: Exit INetCfgLock::ReleaseWriteLock, hr = 00000000x 13:46:38.273
     cci:                          [NCI END REMOVE DEVICE for ROOT\NET\0001. Result 0x00000000]
     dvi:                     Class installer: Exit
     dvi:                     CoInstaller 1: Enter (Post Processing) 13:46:38.276
     cci:                          [NdisCoinst: Enter NcipHandleRemovePostProcessing]
     cci:                          [NdisCoinst: Exit NcipHandleRemovePostProcessing]
     dvi:                     CoInstaller 1: Exit (Post Processing)
     dvi:                {DIF_REMOVE - exit(0x00000000)} 13:46:38.276
     cci:                [NCI END INSTALL DEVICE for ROOT\NET\0001]
     dvi:           Class installer: Exit
     dvi:           Default installer: Enter 13:46:38.278
!!!  dvi:                Error obtaining device ID!
!!!  dvi:                Cleaning up failed installation (00000006)
!    dvi:                Failed to set Config Flags property: 0x00000020
!    dvi:                Error 0xe000020b: The device instance does not exist in the hardware tree.
!!!  dvi:           Default installer: failed!
!!!  dvi:           Error 6: The handle is invalid.
     dvi:      {DIF_INSTALLDEVICE - exit(0x00000006)} 13:46:38.281
     dvi:      {DIF_DESTROYPRIVATEDATA} 13:46:38.281
     dvi:           CoInstaller 1: Enter 13:46:38.281
     dvi:           CoInstaller 1: Exit
     dvi:           CoInstaller 2: Enter 13:46:38.281
     dvi:           CoInstaller 2: Exit
     dvi:           CoInstaller 3: Enter 13:46:38.281
     dvi:           CoInstaller 3: Exit
     dvi:           Class installer: Enter 13:46:38.281
     dvi:           Class installer: Exit
     dvi:      {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 13:46:38.281
     ump:      Server install process exited with code 0x00000006 13:46:38.281
     ump: {Plug and Play Service: Device Install exit(00000006)}
     dvi: {Build Driver List} 13:46:38.281
!    dvi:      Driver list already built
     dvi: {Build Driver List - exit(0x00000000)} 13:46:38.281
     dvi: {DIF_SELECTBESTCOMPATDRV} 13:46:38.281
     dvi:      CoInstaller 1: Enter 13:46:38.281
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 13:46:38.281
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 13:46:38.281
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 13:46:38.281
     dvi:      Class installer: Exit
     dvi:      Default installer: Enter 13:46:38.281
     dvi:           {Select Best Driver}
     dvi:                Selected driver installs from section [tap0901.ndi] in 'c:\program files\tap-windows\driver\oemwin2k.inf'.
     dvi:                Class GUID of device changed to: {4d36e972-e325-11ce-bfc1-08002be10318}.
     dvi:                {DIF_DESTROYPRIVATEDATA} 13:46:38.296
     dvi:                     CoInstaller 1: Enter 13:46:38.296
     dvi:                     CoInstaller 1: Exit
     dvi:                     CoInstaller 2: Enter 13:46:38.299
     dvi:                     CoInstaller 2: Exit
     dvi:                     CoInstaller 3: Enter 13:46:38.299
     dvi:                     CoInstaller 3: Exit
     dvi:                     Class installer: Enter 13:46:38.299
     dvi:                     Class installer: Exit
     dvi:                {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 13:46:38.299
     dvi:                Set selected driver complete.
     dvi:                Selected:
     dvi:                     Description - [TAP-Windows Adapter V9]
     dvi:                     InfFile     - [c:\program files\tap-windows\driver\oemwin2k.inf]
     dvi:                     Section     - [tap0901.ndi]
     dvi:                     Signer      - [OpenVPN Technologies, Inc.]
     dvi:                     Rank        - [0x00ff0000]
     dvi:           {Select Best Driver - exit(0x00000000)}
     dvi:      Default installer: Exit
     dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 13:46:38.301
     dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 13:46:38.301
     dvi:      Using exported function 'NetClassInstaller' in module 'C:\Windows\system32\NetCfgx.dll'.
     dvi:      Class installer == NetCfgx.dll,NetClassInstaller
     dvi:      Using exported function 'NciDeviceInstall' in module 'C:\Windows\system32\nci.dll'.
     dvi:      CoInstaller 1 == nci.dll,NciDeviceInstall
     dvi:      Using exported function 'WlanDeviceClassCoInstaller' in module 'C:\Windows\system32\wlaninst.dll'.
     dvi:      CoInstaller 2 == wlaninst.dll,WlanDeviceClassCoInstaller
     dvi:      Using exported function 'WwanDeviceClassCoInstaller' in module 'C:\Windows\system32\wwaninst.dll'.
     dvi:      CoInstaller 3 == wwaninst.dll,WwanDeviceClassCoInstaller
     dvi:      CoInstaller 1: Enter 13:46:38.301
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 13:46:38.301
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 13:46:38.301
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 13:46:38.301
!!!  dvi:      Class installer: failed(0xe000020b)!
!!!  dvi:      Error 0xe000020b: The device instance does not exist in the hardware tree.
     dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020b)} 13:46:38.301
     dvi: {DIF_DESTROYPRIVATEDATA} 13:46:38.301
     dvi:      CoInstaller 1: Enter 13:46:38.317
     dvi:      CoInstaller 1: Exit
     dvi:      CoInstaller 2: Enter 13:46:38.317
     dvi:      CoInstaller 2: Exit
     dvi:      CoInstaller 3: Enter 13:46:38.320
     dvi:      CoInstaller 3: Exit
     dvi:      Class installer: Enter 13:46:38.320
     dvi:      Class installer: Exit
     dvi: {DIF_DESTROYPRIVATEDATA - exit(0x00000000)} 13:46:38.320
<<<  Section end 2013/12/04 13:46:38.322
<<<  [Exit status: SUCCESS]
I wonder if the admin can possibly add a Spoiler or Hidden Text feature to the forum to improve readability?

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Thu Dec 05, 2013 2:07 pm

Critical error during the install seems to be:

Code: Select all

!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
I did some more digging and found the Technet thread Error 1450 when installing TAP device driver that links the above Tap driver install failure to the corrupt Windows Registry key value:

Code: Select all

Registry Value: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NDIS\IfTypes\1\IfUsedNetLuidIndices
 Registry Data: ff ff ff ff ff ff ff ff ff ff ....
It in turn references another thread NDIS miniport: ERROR_NO_SYSTEM_RESOURCES when installing with more detail info on assigning IfUsedNetLuidIndices values. Yet another thread VPN MSI installation failed on Windows 7 links an MS Fix ifcleanup.exe to clean up the Registry of unused multiple hidden adapters, but also adds:

"It is sometimes not sufficient to run the ifcleanup script. Sometimes you have to export the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\
registry key and look for the culprit subkey. Delete it and all subkeys and it installs, ie.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}
and then run ifcleanup"


No sure if I understand correctly the last quote, what exactly it suggests to do? It looks like it says "delete the key with multiple adapters, run the patch, then reboot to auto recreate the deleted key" or something like that? :D But the patch, while not harmful, did nothing for me to resolve the Tap driver install issue, I assume because it doesn't update by itself the IfUsedNetLuidIndices value. The problem appears to be a Windows Registry failure (deficiency) to auto update IfUsedNetLuidIndices value. There are suggestions on the web to manually change that value to 01, however it usually reported to result in the newly created adapter while present not working anyway.

Rest of the info on the web about this install error suggests to reinstall Windows, which I guess is not an option for a majority of users.

The most interesting part is, competing with OpenVPN product HotSpotShield VPN's driver installs on the same PC without a glitch. Which means, its install code takes care of that regisrty irregularity, and the same approach can be used in OpenVPN driver install code. :twisted:

User avatar
samuli
OpenVPN Inc.
Posts: 49
Joined: Fri Aug 13, 2010 9:05 pm

Re: TAP install failing on Windows 7

Post by samuli » Thu Dec 05, 2013 5:58 pm

I did some testing on my WIndows 7 test VM:
  • Turned off test mode on my Windows 7 box (was on due to historic reasons)
  • Removed as many instances of tap-windows from the DriverStore as possible
  • Removed all installed instances of tap-windows
  • Rebooted
  • Installed tap-windows-9.9.2_3.exe with no issues
It seems even successful tap-windows installs write some errors messages to c:\windows\inf\setupapi.dev.log

Code: Select all

   sto:                {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE} 11:45:58.484
     inf:                     Opened INF: 'C:\Windows\System32\DriverStore\Temp\{1e4948fa-8c9f-68a3-792f-1a64b2d76649}\oemwin2k.inf'([strings])
     sig:                     {_VERIFY_FILE_SIGNATURE} 11:45:58.500
     sig:                          Key      = oemwin2k.inf
     sig:                          FilePath = C:\Windows\System32\DriverStore\Temp\{1e4948fa-8c9f-68a3-792f-1a64b2d76649}\oemwin2k.inf
     sig:                          Catalog  = C:\Windows\System32\DriverStore\Temp\{1e4948fa-8c9f-68a3-792f-1a64b2d76649}\tap0901.cat
!    sig:                          Verifying file against specific (valid) catalog failed! (0x800b0109)
!    sig:                          Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
     sig:                     {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 11:45:58.548
     sig:                     {_VERIFY_FILE_SIGNATURE} 11:45:58.549
     sig:                          Key      = oemwin2k.inf
     sig:                          FilePath = C:\Windows\System32\DriverStore\Temp\{1e4948fa-8c9f-68a3-792f-1a64b2d76649}\oemwin2k.inf
     sig:                          Catalog  = C:\Windows\System32\DriverStore\Temp\{1e4948fa-8c9f-68a3-792f-1a64b2d76649}\tap0901.cat
     sig:                          Success: File is signed in Authenticode(tm) catalog.
     sig:                          Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.
     sig:                     {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 11:45:58.597
     sto:                     Validating driver package files against catalog 'tap0901.cat'.
     sto:                     Driver package is valid.
     sto:                {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE exit(0x00000000)} 11:45:58.603
Those error don't seem to mean anything, or if they do, they're not critical at least. Probably they should be treated as "notices" or "warnings". These seem to be the important lines indicating success:

Code: Select all

     sig:                          Success: File is signed in Authenticode(tm) catalog.

     sto:                     Driver package is valid.

     sto:                {DRIVERSTORE_IMPORT_NOTIFY_VALIDATE exit(0x00000000)} 11:45:58.603
The exit(0x00000000) value typically indicates a success, and indeed, my tap-windows driver installed just fine. I will send a mail to
openvpn-devel mailing list asking about this to see if having those "errors" is normal, just in case there is something funky going on in tap-windows driver signing that could bite us back later.

The log from Sam (above) shows a real failure, which we need to look into deeper to understand where and why it's failing.

Btw. I added some driver debugging stuff here.
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

User avatar
samuli
OpenVPN Inc.
Posts: 49
Joined: Fri Aug 13, 2010 9:05 pm

Re: TAP install failing on Windows 7

Post by samuli » Fri Dec 06, 2013 9:37 am

EDIT: It seems I was a bit hasty responding and did not notice that the same research was done above, lol :). Anyways, I doubt Hotspot VPN does anything special - OpenVPN and almost certainly HotSpot VPN (which uses OpenVPN) use devcon.exe to install the tap-windows driver. The devcon.exe is a tool provided by Microsoft for installing drivers from the command prompt. All of the driver installation logic is embedded into this tool, including the logic that does the registry changes - we only give the tool a few parameters and then it does it's thing. In sambul's case the registry changes are probably failing, because devcon.exe is trying to assign the tap-windows driver a luid that is reserved, or otherwise unavailable. This would be the natural consequence of Windows losing track of network drivers and their luids at some earlier point. This would also explain why installing some drivers does work, whereas installing tap-windows does not.

The meat of the matter is that we (=the OpenVPN project) can't really do anything to fix this problem, because it's not a problem in tap-windows driver or installer, but in the client workstation. If the registry can't be fixed, then reinstalling Windows is probably the only "fix".

Here's my original posting - it's somewhat redundant, but still contains some useful information.

Looking at sambul21's logs this seems to be where the install fails:
sambul21 wrote:

Code: Select all

     dvi:           {DIF_INSTALLINTERFACES - exit(0x00000000)} 13:46:37.984
     ndv:           Installing device...
     dvi:           {DIF_INSTALLDEVICE} 13:46:37.984
     dvi:                CoInstaller 1: Enter 13:46:37.984
     cci:                     [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                     NdisCoinst: NetCfgInstanceId does not exist
     cci:                     NdisCoinst: Guid of the adapter is {56B1231C-4E5D-48F2-9344-77E3D4E34C6A}
     inf:                     Opened PNF: 'C:\Windows\INF\oem122.inf' ([strings])
     cci:                     NdisCoinst: IfType from registry is 1
     cci:                     NdisCoinst: IfType 1, Characteristics 0x81, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                     NdisCoinst: Connection name is Local Area Connection
     cci:                     NdisCoinst: NetLuidIndex does not exist
!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
     cci:                     [NdisCoinst: Exit NcipHandleInstallPreProcessing]
!!!  dvi:                CoInstaller 1: failed(0x000005aa)!
!!!  dvi:                Error 1450: Insufficient system resources exist to complete the requested service.
     dvi:           {DIF_INSTALLDEVICE - exit(0x000005aa)} 13:46:38.036
!!!  ndv:           Error(000005aa) installing device!
     ndv:           Device install status=0x000005aa
     ndv:           Performing device install final cleanup...
!    ndv:           Queueing up error report since device installation failed...
In particular this line:

Code: Select all

!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
Followed soon by this one:

Code: Select all

!!!  dvi:                Error 1450: Insufficient system resources exist to complete the requested service.
I do not have either of these errors on my logs after a successful tap-windows driver install. This issue is not limited to tap-windows installs, but can affect other network driver installs. Here's one example of this exact failure when installing a NDIS miniport driver, with good explanation from Jeffrey Tippet of what's happening and how to fix it.

Usually the 1450 error seems to be triggered by lack of memory, or large file copying (see Microsoft KB article 304101). That's why googling for 1450 gives lots of links related to backup tools. In this case the 1450 error is preceded by the "NcipAllocateNetLuidIndex failed" message, which points towards a corrupted registry. The corruption could have been caused by too many installed drivers (1000+) or by a (bad) registry cleaner. For further details and suggestions on how to fix this look at Jeffrey's postings.

The certificate "errors" that are shown in the driver install logs even after a successful install seem to be common, and not tied to tap-windows in particular, look here for example.
--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Fri Dec 06, 2013 6:02 pm

samuli wrote:I doubt Hotspot VPN does anything special - OpenVPN and almost certainly HotSpot VPN (which uses OpenVPN) use devcon.exe to install the tap-windows driver.
Except HotSpot VPN installs to a PC from 1st attempt without a glitch despite mentioned above IfUsedNetLuidIndices value, while OpenVPN and Tap-Windows driver are never able to install on the same PC. This means, current HotSpot VPN installer likely uses a different devcon.exe version, and almost certainly a different network driver. Even if only the driver NAME or version is different, it works well, and I doubt is the same driver as in Downloads on this site.

Btw, my PC has only 9 network adapters installed, not "hundreds", and there are several other threads in this forum section, related to exact same error at Tap-Windows install for seemingly exact same reason, which was never addressed. Its not proven given IfUsedNetLuidIndices value is irregular, and even if it is, this glitch seems to me of low consequence for a majority of network drivers, similar to "invalid certificate" error mentioned earlier (which is also not proven to have no effect). Simple question still remains:

- Why Anchorfree HSS VPN Adapter (taphss6) installs without a glitch before or after failed attempts of installing Tap-Windows driver, while Tap-Windows (tap0901) driver never installs at all?

- Is it possible to use taphss6 adapter with OpenVPN install instead of tap0901 missing, and how to?


Image

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Fri Dec 06, 2013 7:42 pm

Here is the download link to unpacked current HotSpot VPN package installer. May be you want to take a look on the driver installers and drivers inside?

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Fri Dec 06, 2013 9:38 pm

I finally got it installed. The method is of course highly irregular, but might work for some other folks out there, and once installed, everything works:

- downloaded OpenVPN Portable, and run it to update to newer version and unpack;
- run the unpacked OpenVPNPortable.exe. It offered to install the missing Tap-Windows driver, click OK, then driver install fails as usual. However, a new Tap-Windows Adapter was still visible in Device Manager as Unknown Device, it was not deleted by the installer, but without driver attached :o ;
- open that Adapter and run Driver Update - Let me choose - Anchorfree HSS VPN Adapter Driver;
- once the driver was installed and the Adapter renamed to Anchorfree, I run the latest CyberGhost VPN installer, which earlier failed due to above driver error (or could run OpenVPN installer instead);
- this time the Anchorfree Adapter was renamed back to Tap-Windows Adapter 9 #2, and the package finally started working as it should.

Again, this is just a workaround, but at least it allows to use CyberGhost. Just out of sport interest I then also installed latest OpenVPN package, and it binded itself to the same adapter TAP-Windows Adapter V9 #2 without a glitch. I then checked IfUsedNetLuidIndices Registry value - it remained unchaged fff.... Now every folk with similar install error can try this method - its FREE. :lol:

Image

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Fri Dec 06, 2013 10:15 pm

To check if the method is repeatable, I uninstalled both CyberGhost and OpenVPN, so the new adapter was deleted. Than I uninstalled Tap-Windows driver by Uninstall.exe from C:\Program Files\TAP-Windows, and its inf from DriverStore by running pnputil.exe -d Oem119.inf from CMD. I left HotSpotShield installed with its driver Anchorfree. After that I attempted to reinstall CyberGhost, but faced the same Tap-Windows driver install error as before.

Then I repeated the above trick again, and it worked! :ugeek:

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Sun Dec 08, 2013 5:06 am

So now what remains is to find out, why Tap-Windows driver installation failed, while of Anchorfree driver succeeded? The issue is not so simple, given any driver development is an art, but at least some relevant info is visible in the Devcon install logs...

For Tap-Windows driver:

Code: Select all

cci:                          [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                          NdisCoinst: NetCfgInstanceId does not exist
     cci:                          NdisCoinst: Guid of the adapter is {C7D17CE8-FAFA-4880-BC0E-16618BE2A009}  
     inf:                          Opened PNF: 'C:\Windows\INF\oem119.inf' ([strings])
     cci:                          NdisCoinst: IfType from registry is 1
cci:                     NdisCoinst: IfType 1, Characteristics 0x81, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                     NdisCoinst: Connection name is Local Area Connection
     cci:                     NdisCoinst: NetLuidIndex does not exist
!!!  cci:                     NdisCoinst: NcipAllocateNetLuidIndex failed with error 0x5aa
For Anchorfree driver:

Code: Select all

     cci:                          [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                          NdisCoinst: NetCfgInstanceId does not exist
     cci:                          NdisCoinst: Guid of the adapter is {BC4349DB-B304-4934-B1D5-056879100079}
     inf:                          Opened PNF: 'C:\Windows\INF\oem121.inf' ([strings])
     cci:                          NdisCoinst: IfType from registry is 6
cci:                          NdisCoinst: IfType 6, Characteristics 0x89, IsIrdaDevice 0, PhysicalMediaType 14, MediaType 0, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                          NdisCoinst: Connection name is Local Area Connection* 11
     cci:                          NdisCoinst: NetLuidIndex does not exist
     cci:                          NdisCoinst: Allocated NetLuidIndex is 24
When replacing Anchorfree with Tap-Windows for an existing Tap-Windows Adapter:

Code: Select all

cci:                     [NdisCoinst: Enter NcipHandleInstallPreProcessing]
     cci:                     NdisCoinst: Guid of the adapter exists and is {BC4349DB-B304-4934-B1D5-056879100079}
     inf:                     Opened PNF: 'C:\Windows\INF\oem119.inf' ([strings])
     cci:                     NdisCoinst: IfType from registry is 6
     cci:                     NdisCoinst: IfType 6, Characteristics 0x89, IsIrdaDevice 0, PhysicalMediaType 14, MediaType 0, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
     cci:                     NdisCoinst: Connection name is Local Area Connection* 11
     cci:                     NdisCoinst: NetLuidIndex exists and is 24
     cci:                     [NdisCoinst: Exit NcipHandleInstallPreProcessing]
     dvi:                CoInstaller 1: Exit
     dvi:                CoInstaller 2: Enter 17:09:34.138
     inf:                     Opened PNF: 'C:\Windows\INF\oem119.inf' ([strings])
     dvi:                CoInstaller 2: Exit
     dvi:                CoInstaller 3: Enter 17:09:34.143
     inf:                     Opened PNF: 'C:\Windows\INF\oem119.inf' ([strings])
     dvi:                CoInstaller 3: Exit
     dvi:                Class installer: Enter 17:09:34.145
     cci:                     [NCI BEGIN INSTALL DEVICE for ROOT\NET\0001]
     inf:                     Opened PNF: 'C:\Windows\INF\oem119.inf' ([strings])
     cci:                     NCI: NewDeviceInstall is 0. Assuming this is an update
     inf:                     AddReg=tap0901.reg  (oem119.inf line 88)
     inf:                     AddReg=tap0901.params.reg  (oem119.inf line 89)
     dvi:                     {Install DEVICE}
As you see from above logs, the system assigns different ifTypes to the drivers and different GUIDs, while Class GUID remains the same. Respectively, for each adapter ifType a separate Registry key exists, and IfUsedNetLuidIndices are different for these keys. As per NDIS Interface Types, ifType 1 corresponds to Other adapter types, and ifType 6 to Ethernet type. So in my system IfUsedNetLuidIndices for Other adapter type was broken (and more likely to be in other systems, due to Other being seldom used adapters from unknown developers :)), while IfUsedNetLuidIndices for Ethernet adapter type was intact.

As a result, Anchorfree driver was installed without a glitch, while Tap-Windows install failed. Later, when Anchorfree was replaced with Tap-Windows for the same Adapter, its LUID and GUID already existed, and were left intact during the driver update.

Look strange are negative values PhysicalMediaType -1, MediaType -1, which might point to the root cause of the install failure. In fact, its possible that namely Tap-Windows driver install has broken IfUsedNetLuidIndices value and the adapter count due to errors in the driver files. There is no indication this value was broken before failed driver install, and this may be the case for every other failed driver install with similar errors. Not only the driver fails to install, it also broke the Registry under certain conditions that may not be present in a fresh Windows install, where many Registry keys simply don't exist.

sambul21
OpenVpn Newbie
Posts: 17
Joined: Wed Dec 04, 2013 6:08 pm

Re: TAP install failing on Windows 7

Post by sambul21 » Sun Dec 08, 2013 5:12 pm

I wanted to experiment with Tap-Windows driver install a bit more. Again deleted Tap-Windows adapter and driver already installed. Run again the MS fix ifcleanup.exe just in case there are multiple hidden unused drivers to be removed. Than opened Regedit at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NDIS\IfTypes\1\IfUsedNetLuidIndices and change that value from hex:ffff... to hex:01 . Rebooted, and run the Tap-Windows driver install again. This time it was installed without a glitch, and a new Tap-Windows Adapter V9 appeared in Device Manager. I then opened earlier installed CyberGhost VPN, hit Connect, and within 1 min got connected via a remote VPN server. It works like a charm now!

Image

Just to double check I then run a virtual machine, and access to internet was working normally from the VM via CyberGhost running on the host PC. There are no visible problems with any other previously installed network adapters & drivers thus far, so nothing seems to be affected at this point by the above Registry change except the Tap-Windows driver was installed properly. Seems like an easy fix, no need in any workarounds... :mrgreen:

Post Reply