Skip to contentSkip to conversation

OpenVPN Windows uninstallation does not remove TAP driver

PATCH In review Christian Rank 2 participants 2 messages Sep 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OpenVPN Windows uninstallation does not remove TAP driver

Author: Christian Rank <[email protected]...>

32-bit Windows version of OpenVPN installed on a 64-bit Windows does not remove TAP driver on uninstallation.

If you install OpenVPN on a 64-bit Windows using the 32-bit installer from

Quoted 1 line

http://swupdate.openvpn.org/community/releases/openvpn-install-2.3.2-I003-i686.exe

the TAP driver gets installed by default (if not deselected during installation).

However, uninstalling the OpenVPN software leaves the TAP driver installed.

Here is patch for the NSIS configuration file which corrects this installer issue.

Signature · 9 lines
Dr. Christian Rank
Rechenzentrum Universität Passau
Bereich Netzwerk und Telekommunikation
IT-Sicherheitsbeauftragter der Universität
Innstr. 33
D-94032 Passau
GERMANY
Tel.: 0851/509-1838
Fax:  0851/509-1802

*** openvpn.nsi 2013-09-26 11:19:46.000000000 +0200
--- openvpn-20130926.nsi 2013-09-26 14:26:16.000000000 +0200
***************
*** 509,516 ****
--- 509,519 ----
Sleep 3000

!ifdef USE_TAP_WINDOWS
+ SetRegView 64
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "tap"
+ ReadRegStr $R1 HKLM "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "tap"
${If} $R0 == "installed"
+ ${OrIf} $R1 == "installed"
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TAP-Windows" "UninstallString" ${If} $R0 != ""
DetailPrint "TAP UNINSTALL"
***************
*** 518,523 ****
--- 521,527 ----
Pop $R0 # return value/error/timeout
${EndIf}
${EndIf}
+ SetRegView lastused
!endif

  	${un.EnvVarUpdate} $R0 "PATH" "R" "HKLM" "$INSTDIR\bin"
#1 lore raw

Hi Christian,

Thanks for the patch! I'll test it and apply it to openvpn-build if it all checks out.

Samuli

----- Messaggio originale -----

Quoted 11 lines

Author: Christian Rank <[email protected]...>

32-bit Windows version of OpenVPN installed on a 64-bit Windows does not remove TAP driver on uninstallation.

If you install OpenVPN on a 64-bit Windows using the 32-bit installer from

Quoted 1 line

http://swupdate.openvpn.org/community/releases/openvpn-install-2.3.2-I003-i686.exe

the TAP driver gets installed by default (if not deselected during installation).

Quoted 19 lines

However, uninstalling the OpenVPN software leaves the TAP driver installed.

Here is patch for the NSIS configuration file which corrects this installer issue.

Signature · 9 lines
Dr. Christian Rank
Rechenzentrum Universität Passau
Bereich Netzwerk und Telekommunikation
IT-Sicherheitsbeauftragter der Universität
Innstr. 33
D-94032 Passau
GERMANY
Tel.: 0851/509-1838
Fax:   0851/509-1802
<Allegato>   openvpn.nsi.patch
<Allegato>   smime.p7s
<Allegato>   ATT00001.txt
<Allegato>   ATT00002.txt