Using the OpenVPN AddOn I can launch a session and connect without issue, but I can't get the Close session option to work properly If I leave up the prompt for auth after launching an OpenVPN session, then use Close session, it will close the auth prompt but not the OpenVPN GUI application. Is there something I can do (wrap the OpenVPN GUI launch in another exe) to work around or fix this issue? How does the Close session option work with the AddOns? Is there something I'm missing (in code) that will fix this issue?
EDIT: Closing a session seems to work OK with your SQL AddOn, so I'm wondering what the difference is other than OpenVPN GUI is a tray app? Is RDM looking for a window to close, as opposed to a process?
Thanks
edited by jskuby on 12/20/2009
Hi,
The close is not exposed, by default a Window message is sent to the process, maybe it's not enough for OpenVPN. I will check if I can expose a close API.
Thank you
David Hervieux
Devolutions inc.
David Hervieux
That would be great. I've been working like crazy trying to refine this plugin so I can go into "maintenance mode" on it and start up another addon or two (I've already got some ideas), and this is the last thing that will make the addon completely automated :)
Hi,
I released an unofficial beta and it's already available, maybe you can give me some feedback:
http://remotedesktopmanager.com/download/Devolutions.RemoteDesktopManager.Bin.5.7.0.10.zip
I'm uploading the the binaries with the code for the after close. Just override this method from "BaseSessionAddOn2":
public override void AfterClose(string aParams) {
}
You receive your original parameters.
I hope this help.
David Hervieux
Devolutions inc.
David Hervieux
Thanks David! That means I should be able to force quit OpenVPN and perform some temp file cleanup (imported connections are written to a temp dir for OpenVPN to read). I'll let you know how it goes later tonight.
Success! I've got the addon killing OpenVPN and cleaning up temp files using the AfterClose method. Thanks again David!
Hi,
Great news, thank to you.
David Hervieux
Devolutions inc.
David Hervieux