Author: Christian Rank <christian.r...@uni-passau.de>

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
> 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.

Signed-off-by: Christian Rank <christian.r...@uni-passau.de>

-- 
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"

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to