Page 1 of 1

openvpn gui systray icon missing after incorrect password

Posted: Fri Nov 05, 2010 6:03 pm
by wizangzing
I open a connection via the Windows 7 task scheduler when I log on as:

Code: Select all

C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe --connect wizangzing.ovpn
This works great unless I mis-type my password. When that happens the openvpn gui window is dismissed, andthere is no openvpn icon in the systray to use for connecting. If I try starting the gui again, it tells me it is already running. I end up killing the process from the windows task manager and relaunching the gui.

Is there a way to force the systray icon to appear or another way to connect
when in this state?

Code: Select all

$ cat wizangzing.ovpn|grep -vE '^#|^;|^$'
client
dev tun
proto udp
remote vpn.xxxxx.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert wizangzing.crt
key wizangzing.key
ns-cert-type server
comp-lzo
verb 3
Thanks.

Re: openvpn gui systray icon missing after incorrect passwor

Posted: Mon Nov 08, 2010 2:10 pm
by george
I ran into the same issue, and resolved it with a batch file:

Code: Select all

@ECHO OFF

::restart openvpn-gui.exe to cause explorer to re-register the openvpn-gui.exe system tray icon.


::Stops openvpn-gui.exe
taskkill /IM openvpn-gui.exe

::Starts openvpn-gui.exe
cd C:\"Program Files"\openvpn\bin
start openvpn-gui.exe
You may need to adjust the path statements.