Failed to uninstall driver: The operation completed successfully.

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!
scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat May 22, 2021 7:08 am

(preface: I'm not at all familiar with Windows, so bear with me)

Hello,

my current OpenVPN installation is borked, I can't connect to any server (I don't have the original error message in mind). My idea was to simply reinstall OpenVPN hoping that this would fix my issues.

So I opened the Windows settings, clicked on Apps > OpenVPN > Uninstall. However, removal failed with this error:
Image

However, installing a new version of OpenVPN doesn't work either:
Image

So I removed the folder where OpenVPN was installed in, however, that didn't fix anything either.

I already tried restarting my pc.

What can I do now? Thanks for any help in advance.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat May 22, 2021 12:21 pm

Do you have a third party security product running ? Like Kaspersky

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat May 22, 2021 2:15 pm

Nope, just Windows Defender

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat May 22, 2021 2:29 pm

Try installing an older version, 2.4.x

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat May 22, 2021 3:31 pm

That worked. Should I just stick with 2.4.x?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat May 22, 2021 5:23 pm

It would be better if we could work out why 2.5 fails but I don't really have any ideas ..

You did not actually state the version of Windows you are using.
Last edited by TinCanTech on Sat May 22, 2021 7:44 pm, edited 1 time in total.

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat May 22, 2021 6:29 pm

Windows 10 Version 2004 OS Build 19041.985

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat May 22, 2021 7:46 pm

If installing 2.4 worked then you could try uninstalling and then install 2.5

I know these are basic steps but I don't debug Windblows.

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Mon May 24, 2021 4:41 pm

No, installing 2.5 still does not work:

OpenVPNMSICA: tap_create_adapter: DiInstallDevice failed Error -536870397

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Tue May 25, 2021 1:50 pm

I posted a question to the users mailing list but have had no reply in 24 hours.

User avatar
stipa
OpenVPN Inc.
Posts: 17
Joined: Mon Nov 03, 2014 10:17 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by stipa » Thu May 27, 2021 7:27 am

It is hard to say what is going on without seeing logs. To collect logs:

1) Install OpenVPN from the command line:

Code: Select all

msiexec /i OpenVPN-2.5.2-I601-amd64.msi /L*V install.log
2) Post here (or somewhere) install.log obtained from previous step, as well as

Code: Select all

C:\Windows\INF\setupapi.dev.log

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Fri Aug 06, 2021 11:05 am

Sorry for the late reply. I just tried 2.5.3, and it fails with the same error.

install.log: https://pastebin.com/AdDwfRkr
setupapi.dev.log: https://pastebin.com/3YmQrWS5

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Fri Aug 06, 2021 7:37 pm

scrouthtv wrote:
Sat May 22, 2021 7:08 am
preface: I'm not at all familiar with Windows
Are you familiar with Linux ?

It is not too difficult to build a Windows Openvpn Installer for yourself, and if you try it then you can build a .exe installer.
If that works then it would probably indicate some issue.

If you have time to try then start here:
https://community.openvpn.net/openvpn/w ... ericsubdir

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Fri Aug 06, 2021 7:55 pm

Reading your log, this appears to be the problem:

Code: Select all

InstallTUNTAPAdapters: Creating adapter: OpenVPN Wintun Wintun 
InstallTUNTAPAdapters: Creating adapter: OpenVPN TAP-Windows6 root\tap0901 
Error 2551. OpenVPNMSICA: tap_create_adapter: DiInstallDevice failed  Error 2: The system cannot find the file specified.
MSI (s) (30!E0) [12:56:31:258]: Product: OpenVPN 2.5.3-I601 amd64 -- Error 2551. OpenVPNMSICA: tap_create_adapter: DiInstallDevice failed  Error 2: The system cannot find the file specified.
Line 1307

becm
OpenVPN User
Posts: 38
Joined: Tue Sep 01, 2020 1:27 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by becm » Fri Aug 06, 2021 9:51 pm

According to logs, the bundled TAP driver is not getting installed and missing during device setup.
Not sure how this is an installer hickup or something more sinister…

A broken old TAP driver is still there but unusable (oem1.inf -> 6c3b121e4e82e247, v9.23.3, likely OpenVPN 2.4.7 or older).
Purging it may be possible via pnputil /delete-driver oem1.inf /force.

First related entry in setupapi.dev.log is SetupCopyOEMInf (line 143) for Wintun 0.8.
The respective operation for TAP v9.24.6 is not executed.

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat Aug 07, 2021 2:10 pm

> pnputil /delete-driver oem1.inf /force

This command worked. But trying to install OpenVPN gives "OpenVPNMSICA: tap_create_adapter: DiInstallDevice failed Error -536870397".

install.log: https://pastebin.com/sWBJUMtV
setupapi.dev.log: https://pastebin.com/0PpWQxLj

> Are you familiar with Linux? It is not too difficult to build a Windows Openvpn Installer for yourself, and if you try it then you can build a .exe installer.

Tried that, got "Assembler messages: Fatal error: bad .section directive" for openssl-1.1.1k/. I'll try to fix it.
Last edited by scrouthtv on Sat Aug 07, 2021 2:30 pm, edited 1 time in total.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat Aug 07, 2021 2:21 pm

scrouthtv wrote:
Sat Aug 07, 2021 2:10 pm
Tried that, got Assembler messages: Fatal error: bad .section directive in openssl-1.1.1k/. I'll try to fix that.
If you provide some more details then we may be able to help ..

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat Aug 07, 2021 3:00 pm


TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Failed to uninstall driver: The operation completed successfully.

Post by TinCanTech » Sat Aug 07, 2021 3:58 pm

The openvpn-build-system will build openssl for you ..

BTW: There looks like a small typ0 on this page:
https://github.com/scrouthtv/easy-copy/ ... /README.md

Code: Select all

rf -> rm -- probably

scrouthtv
OpenVpn Newbie
Posts: 9
Joined: Sat May 22, 2021 6:55 am

Re: Failed to uninstall driver: The operation completed successfully.

Post by scrouthtv » Sat Aug 07, 2021 8:10 pm

Haven't gotten an answer from the folks at openssl yet.

Here's my problem: if I try to build OpenVPN using openvpn-build as described in the article you linked ("To build for Windows 64bit on Linux 64bit:"), I get this log:

Code: Select all

 > IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 \
    CBUILD=x86_64-pc-linux-gnu ./build
Extract '/home/lenni/git/openvpn-build/generic/sources/lzo-2.10.tar.gz'
Extract '/home/lenni/git/openvpn-build/generic/sources/openssl-1.1.1k.tar.gz'
Extract '/home/lenni/git/openvpn-build/generic/sources/openvpn-2.5.3.tar.gz'
Extract '/home/lenni/git/openvpn-build/generic/sources/openvpn-gui-11.tar.gz'
Extract '/home/lenni/git/openvpn-build/generic/sources/pkcs11-helper-1.27.0.tar.bz2'
Extract '/home/lenni/git/openvpn-build/generic/sources/tap-windows-9.24.6.zip'
Archive:  /home/lenni/git/openvpn-build/generic/sources/tap-windows-9.24.6.zip
   creating: tap-windows-9.24.6/
   creating: tap-windows-9.24.6/include/
  inflating: tap-windows-9.24.6/include/tap-windows.h
   creating: tap-windows-9.24.6/arm64/
  inflating: tap-windows-9.24.6/arm64/tap0901.sys
   creating: tap-windows-9.24.6/arm64/win10/
  inflating: tap-windows-9.24.6/arm64/tap0901.cat
  inflating: tap-windows-9.24.6/arm64/tapinstall.exe
  inflating: tap-windows-9.24.6/arm64/OemVista.inf
   creating: tap-windows-9.24.6/amd64/
  inflating: tap-windows-9.24.6/amd64/tap0901.sys
   creating: tap-windows-9.24.6/amd64/win10/
  inflating: tap-windows-9.24.6/amd64/win10/tap0901.sys
  inflating: tap-windows-9.24.6/amd64/win10/tap0901.cat
  inflating: tap-windows-9.24.6/amd64/win10/OemVista.inf
  inflating: tap-windows-9.24.6/amd64/tap0901.cat
  inflating: tap-windows-9.24.6/amd64/tapinstall.exe
  inflating: tap-windows-9.24.6/amd64/OemVista.inf
   creating: tap-windows-9.24.6/i386/
  inflating: tap-windows-9.24.6/i386/tap0901.sys
   creating: tap-windows-9.24.6/i386/win10/
  inflating: tap-windows-9.24.6/i386/win10/tap0901.sys
  inflating: tap-windows-9.24.6/i386/win10/tap0901.cat
  inflating: tap-windows-9.24.6/i386/win10/OemVista.inf
  inflating: tap-windows-9.24.6/i386/tap0901.cat
  inflating: tap-windows-9.24.6/i386/tapinstall.exe
  inflating: tap-windows-9.24.6/i386/OemVista.inf
Extract '/home/lenni/git/openvpn-build/generic/sources/v1.9.3.tar.gz'
Patch: '/home/lenni/git/openvpn-build/generic/patches/pkcs11-helper-001-RFC7512.patch'
patching file lib/pkcs11h-serialization.c
Hunk #1 succeeded at 60 (offset -1 lines).
Hunk #2 succeeded at 189 (offset -1 lines).
Hunk #3 succeeded at 352 (offset -1 lines).
Hunk #4 succeeded at 368 (offset -1 lines).
Hunk #5 succeeded at 426 (offset -1 lines).
Hunk #6 succeeded at 483 (offset -1 lines).
Hunk #7 succeeded at 495 (offset -1 lines).
Hunk #8 succeeded at 508 (offset -1 lines).
Hunk #9 succeeded at 521 (offset -1 lines).
Hunk #10 succeeded at 535 (offset -1 lines).
Hunk #11 succeeded at 557 (offset -1 lines).
Hunk #12 succeeded at 574 (offset -1 lines).
Hunk #13 succeeded at 595 (offset -1 lines).
patching file lib/pkcs11h-util.c
Hunk #1 succeeded at 109 (offset -1 lines).
Build openssl
Configuring OpenSSL version 1.1.1k (0x101010bfL) for mingw64
Using os-specific seed configuration
Creating configdata.pm
Creating Makefile

**********************************************************************
***                                                                ***
***   OpenSSL has been successfully configured                     ***
***                                                                ***
***   If you encounter a problem while building, please open an    ***
***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
***   and include the output from the following command:           ***
***                                                                ***
***       perl configdata.pm --dump                                ***
***                                                                ***
***   (If you are new to OpenSSL, you might want to consult the    ***
***   'Troubleshooting' section in the INSTALL file first)         ***
***                                                                ***
**********************************************************************
LIBSSL: No new symbols added
LIBCRYPTO: No new symbols added
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory '/home/lenni/git/openvpn-build/generic/tmp/openssl-1.1.1k'
make[1]: Leaving directory '/home/lenni/git/openvpn-build/generic/tmp/openssl-1.1.1k'
make[1]: Entering directory '/home/lenni/git/openvpn-build/generic/tmp/openssl-1.1.1k'
x86_64-w64-mingw32-gcc  -I. -Iinclude -m64 -Wa,--noexecstack -Wl,--dynamicbase,--nxcompat -O3 -O3 -static-libgcc -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/lib/engines-1_1\"" -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -D_MT -DNDEBUG  -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o apps/app_rand.o apps/app_rand.c
/tmp/cccuXZ2G.s: Assembler messages:
/tmp/cccuXZ2G.s:3: Fatal error: bad .section directive: want a,l,w,x,M,S,G,T in string
make[1]: *** [Makefile:729: apps/app_rand.o] Error 1
make[1]: Leaving directory '/home/lenni/git/openvpn-build/generic/tmp/openssl-1.1.1k'
make: *** [Makefile:188: all] Error 2
Notice the error assembling some file in openssl-1.1.1k/. The openssl installation instructions suggest to configure it with --no-asm, but that doesn't fix my issue. Any idea what's going on here? I have mingw compilers + assembler installed.

Post Reply