Hi,

On Mon, Nov 21, 2016 at 12:34 PM, debbie10t <debbie...@gmail.com> wrote:

> UNINSTALLING From C:\#Tools\Openvpn

...

Registry remains:
>
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN]
> "config_dir"="C:\\#Tools\\OpenVPN\\config"
> "config_ext"="ovpn"
> "exe_path"="C:\\#Tools\\OpenVPN\\bin\\openvpn.exe"
> "log_dir"="C:\\#Tools\\OpenVPN\\log"
> "priority"="NORMAL_PRIORITY_CLASS"
> "log_append"="0"
> @="C:\\#Tools\\OpenVPN"


Uninstall should remove the Registry key HKLM\SoftWare\OpenVPN but in this
case its not removed which is strange..

[HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN]
>
> "config_dir"="C:\\#Tools\\OpenVPN\\config"
>
> "config_ext"="ovpn"
>
> "exe_path"="C:\\#Tools\\OpenVPN\\bin\\openvpn.exe"
>
> "log_dir"="C:\\#Tools\\OpenVPN\\log"
>
> "priority"="NORMAL_PRIORITY_CLASS"
>
> "log_append"="0"
>
> @="C:\\Program Files\\OpenVPN"
>

If the registry key is not removed and then recreated, the above is
expected to happen as the installer always overwrites the default value
("C:\\Program Files\\OpenVPN" here) but uses WriteRegStringIfUndef for all
others. I think we should use WriteRegStr instead.

In fact it would be better if the installer always removes the
HKLM\Software\OpenVPN key and all values under it and then recreates it. We
anyway stop and remove the service in the beginning (even if service
installation is not selected) so no need to keep the original values in
this key.

Selva
------------------------------------------------------------------------------
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to