openvpn-build icon indicating copy to clipboard operation
openvpn-build copied to clipboard

Can't install on windows 10 x64 using newer installers.

Open gtaltatra opened this issue 2 years ago • 2 comments

The latest installer that works for me is openvpn-install-2.4.12-I601-Win10.exe (https://swupdate.openvpn.org/community/releases/openvpn-install-2.4.12-I601-Win10.exe) When I try to install openvpn using newer installers starting from 2.5 I get this error:

image

And then this (after clicking "ok")

image

I uninstalled openvpn 2.4.12 and had no virtual network drivers installed before trying to install 2.5 and newer

image

gtaltatra avatar May 22 '23 03:05 gtaltatra

It is impossible to say what is wrong without seeing logs. I suggest to remove all remains of tap/wintun drivers and try again. Run following commands into administrative powershell (adjusting IDs):

  1. Find all devices that use TAP-Windows6 driver (see Instance ID values)
PS C:\Users\lev> pnputil /enum-devices | Select-String "TAP-Windows Adapter" -Context 1,6

  Instance ID:                ROOT\NET\0000
> Device Description:         TAP-Windows Adapter V9
  Class Name:                 Net
  Class GUID:                 {4d36e972-e325-11ce-bfc1-08002be10318}
  Manufacturer Name:          TAP-Windows Provider V9
  Status:                     Started
  Driver Name:                oem17.inf

  Instance ID:                ROOT\NET\0003
> Device Description:         TAP-Windows Adapter V9 for OpenVPN Connect
  Class Name:                 Net
  Class GUID:                 {4d36e972-e325-11ce-bfc1-08002be10318}
  Manufacturer Name:          TAP-Windows Provider V9 for OpenVPN Connect
  Status:                     Started
  Driver Name:                oem36.inf
  1. Remove those devices:
PS C:\Users\lev> pnputil /remove-device root\net\0000
Microsoft PnP Utility

Removing device:          root\net\0000
Device removed successfully.
  1. Do the same with wintun:
PS C:\Users\lev> pnputil /enum-devices | Select-String "wintun" -Context 1,6

  Instance ID:                ROOT\NET\0001
> Device Description:         Wintun Userspace Tunnel OpenVPN/openvpn-gui#16
  Class Name:                 Net
  Class GUID:                 {4d36e972-e325-11ce-bfc1-08002be10318}
  Manufacturer Name:          WireGuard LLC
  Status:                     Started
  Driver Name:                oem205.inf
PS C:\Users\lev> pnputil /remove-device root\net\0001
Microsoft PnP Utility

Removing device:          root\net\0001
Device removed successfully.
  1. Find all instances of TAP-Windows6 drivers (see Published Name value):

PS C:\Users\lev> pnputil /enum-drivers | Select-String "TAP-Windows Provider V9" -Context 1,10

PS C:\Users\lev> pnputil /enum-drivers | Select-String "TAP-Windows Provider V9" -Context 2,5

  Published Name:     oem17.inf
  Original Name:      oemvista.inf
> Provider Name:      TAP-Windows Provider V9
  Class Name:         Network adapters
  Class GUID:         {4d36e972-e325-11ce-bfc1-08002be10318}
  Driver Version:     04/27/2023 9.26.0.0
  Signer Name:        Microsoft Windows Hardware Compatibility Publisher
  1. Delete those drivers:

PS C:\Users\lev> pnputil /delete-driver oem17.inf

  1. Repeat for wintun drivers:

PS C:\Users\lev> pnputil /enum-drivers | Select-String "wintun" -Context 2,5

  Published Name:     oem205.inf
> Original Name:      wintun.inf
  Provider Name:      WireGuard LLC
  Class Name:         Network adapters
  Class GUID:         {4d36e972-e325-11ce-bfc1-08002be10318}
  Driver Version:     12/10/2019 0.8.0.0
  Signer Name:        Microsoft Windows Hardware Compatibility Publisher

PS C:\Users\lev> pnputil /delete-driver oem205.inf
  1. Install the latest OpenVPN-GUI and collect logs:

msiexec /i OpenVPN-2.6.4-I001-amd64.msi /L*V install.log

  1. If you still experience issues, paste the log here.

lstipakov avatar May 22 '23 09:05 lstipakov

It's still throwing an error for me. You want install.log, correct?

ghost avatar Feb 22 '24 17:02 ghost