Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Илья Шипицин
2016-11-26 0:55 GMT+05:00 Selva Nair :

>
> On Fri, Nov 25, 2016 at 10:27 AM, Gert Doering 
> wrote:
>
>> Hi,
>>
>> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
>> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work
>> as
>> > the GUI cannot reset HKLM values. We do not want to be requiring admin
>> > rights to run the GUI and that option becomes "readonly" for the user if
>> > startup is set in HKLM.
>>
>> How do other packagages handle "this is the system default, but users
>> can change their own setting"?  (So the admin could say "I want this
>> started
>> by default, for all users" and individual users can uncheck this "leave
>> me alone!")
>>
>> Just thinking aloud, no idea how much effort this is, and whether it's
>> a useful consideration in the first place.
>>
>>
> I have posted a PR (https://github.com/OpenVPN/openvpn-build/pull/55) using
> an active-setup registry entry to do this. It will automatically add the
> required HKCU entry when the user logs-in. As this happens early in the
> login process (before startup registry key is evaluated) the GUI will
> startup even on the first login.
>
> Should works also for new users, and the user can change override it using
> the option in GUI settings menu. Changes to the nsis file is minor too.
>

good.

except for minor issue with not removing HKCU key on uninstall (however, it
is not removed without that patch too)


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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Selva Nair
On Fri, Nov 25, 2016 at 10:27 AM, Gert Doering  wrote:

> Hi,
>
> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work
> as
> > the GUI cannot reset HKLM values. We do not want to be requiring admin
> > rights to run the GUI and that option becomes "readonly" for the user if
> > startup is set in HKLM.
>
> How do other packagages handle "this is the system default, but users
> can change their own setting"?  (So the admin could say "I want this
> started
> by default, for all users" and individual users can uncheck this "leave
> me alone!")
>
> Just thinking aloud, no idea how much effort this is, and whether it's
> a useful consideration in the first place.
>
>
I have posted a PR (https://github.com/OpenVPN/openvpn-build/pull/55) using
an active-setup registry entry to do this. It will automatically add the
required HKCU entry when the user logs-in. As this happens early in the
login process (before startup registry key is evaluated) the GUI will
startup even on the first login.

Should works also for new users, and the user can change override it using
the option in GUI settings menu. Changes to the nsis file is minor too.

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Marvin
Yes, as long as we can specify any switches from the new installer itself.
For instance, this is the cli we use for programatically (script)
installing/updating:
"...\openvpn-install-2.xxx /S /SELECT_SHORTCUTS=0 /SELECT_OPENVPNGUI=0"

I imagine there will be more switches required with the 2.4+ installer.

On Fri, Nov 25, 2016 at 5:19 AM, Илья Шипицин  wrote:

>
>
> 2016-11-22 0:56 GMT+05:00 Marvin Adeff :
>
>> Hi,
>>
>> Power User Perspective:
>> Please ensure that these [X] selections can be controlled (as in
>> "disabled") if openvpn is installed by command line (quiet mode).
>>
>
> when installing in silent mode, you can specify any switches, is it ok ?
> those settings can be controlled.
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Marvin Adeff
How about a "preferences" file in %Users%\AppData...?  The installer would 
apply whatever basic choices during install (%defaultUser%\AppData). Then  a 
user could set his personal preferences which WinGUI would save to 
%Users%\AppData.

Sent from my iPhone

> On Nov 25, 2016, at 8:39 AM, Selva Nair  wrote:
> 
> 
>> On Fri, Nov 25, 2016 at 10:27 AM, Gert Doering  wrote:
>> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
>> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work as
>> > the GUI cannot reset HKLM values. We do not want to be requiring admin
>> > rights to run the GUI and that option becomes "readonly" for the user if
>> > startup is set in HKLM.
>> 
>> How do other packagages handle "this is the system default, but users
>> can change their own setting"?  (So the admin could say "I want this started
>> by default, for all users" and individual users can uncheck this "leave
>> me alone!")
>> 
>> Just thinking aloud, no idea how much effort this is, and whether it's
>> a useful consideration in the first place.
> 
> The installer could enumerate all users and adds the setting to their HKCU's. 
> But its not perfect as new users will not get the setting.
> 
> A more sophisticated approach is to use the "active-setup" feature. I have 
> never used it but its supposed to work like this:
> 
> Installer adds a reg key
> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed 
> Components\OpenVPNUserSetup" with two values:
> Version = "2.4.1"  <-- update this every install
> StubPath = "some_cmd"  <-- see below
> 
> When the user logs system will check the value of Version and if new, will 
> execute "some_cmd". So we can set som_cmd to just add teh required reg-key in 
> HKCU like this:
> 
> reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v 
> "OPENVPN-GUI" /d "path_to_openvpn_gui" /t REG_SZ /f"
> 
> I haven't tested it. For more details see: 
> https://helgeklein.com/blog/2010/04/active-setup-explained/  or google active 
> setup.
> 
> Selva
> --
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread David Sommerseth
On 25/11/16 16:35, Илья Шипицин wrote:
> 
> 
> 2016-11-25 20:27 GMT+05:00 Gert Doering  >:
> 
> Hi,
> 
> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work 
> as
> > the GUI cannot reset HKLM values. We do not want to be requiring admin
> > rights to run the GUI and that option becomes "readonly" for the user if
> > startup is set in HKLM.
> 
> How do other packagages handle "this is the system default, but users
> can change their own setting"?  (So the admin could say "I want this
> started
> by default, for all users" and individual users can uncheck this "leave
> me alone!")
> 
> Just thinking aloud, no idea how much effort this is, and whether it's
> a useful consideration in the first place.
> 
> 
> as a perfect solution, we can add 2 choices to installer
> 
> (*) run on startup (current user)
> (*) run on startup (all users)
> 
> and handle both in openvpn-gui.
> 
> but it seems to be complicated.

I think users generally should get as few questions/options as possible.
 It may be switches that an advanced sys-admin can use to enable/display
such options.  But the default experience should be as little questions
as possible.  All users wants is to get started ASAP, and in most cases
they already have a config file provided by someone (if OpenVPN haven't
been installed for them).

We just need to have the most sane defaults covering the vast majority
of users.  OpenVPN v2.4 will be a massive change on the Windows side, so
upgrading can have some pitfalls - and admins uses to v2.3 and older
will need to adjust.  We just need to try to avoid exposing these
pitfalls all together, not provide them more options.


-- 
kind regards,

David Sommerseth
OpenVPN Technologies, Inc




signature.asc
Description: OpenPGP digital signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Selva Nair
Typo alert:

On Fri, Nov 25, 2016 at 11:39 AM, Selva Nair  wrote:

> reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
> /v "OPENVPN-GUI" /d "path_to_openvpn_gui" /t REG_SZ /f"
>

That should be HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Selva Nair
On Fri, Nov 25, 2016 at 10:27 AM, Gert Doering  wrote:

> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work
> as
> > the GUI cannot reset HKLM values. We do not want to be requiring admin
> > rights to run the GUI and that option becomes "readonly" for the user if
> > startup is set in HKLM.
>
> How do other packagages handle "this is the system default, but users
> can change their own setting"?  (So the admin could say "I want this
> started
> by default, for all users" and individual users can uncheck this "leave
> me alone!")
>
> Just thinking aloud, no idea how much effort this is, and whether it's
> a useful consideration in the first place.


The installer could enumerate all users and adds the setting to their
HKCU's. But its not perfect as new users will not get the setting.

A more sophisticated approach is to use the "active-setup" feature. I have
never used it but its supposed to work like this:

Installer adds a reg key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed
Components\OpenVPNUserSetup" with two values:
Version = "2.4.1"  <-- update this every install
StubPath = "some_cmd"  <-- see below

When the user logs system will check the value of Version and if new, will
execute "some_cmd". So we can set som_cmd to just add teh required reg-key
in HKCU like this:

reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v
"OPENVPN-GUI" /d "path_to_openvpn_gui" /t REG_SZ /f"

I haven't tested it. For more details see: https://helgeklein.com/
blog/2010/04/active-setup-explained/  or google active setup.

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Илья Шипицин
2016-11-25 20:27 GMT+05:00 Gert Doering :

> Hi,
>
> On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
> > Even if the GUI cjecks HKLM and HKCU, toggling the option will not work
> as
> > the GUI cannot reset HKLM values. We do not want to be requiring admin
> > rights to run the GUI and that option becomes "readonly" for the user if
> > startup is set in HKLM.
>
> How do other packagages handle "this is the system default, but users
> can change their own setting"?  (So the admin could say "I want this
> started
> by default, for all users" and individual users can uncheck this "leave
> me alone!")
>
> Just thinking aloud, no idea how much effort this is, and whether it's
> a useful consideration in the first place.
>

as a perfect solution, we can add 2 choices to installer

(*) run on startup (current user)
(*) run on startup (all users)

and handle both in openvpn-gui.

but it seems to be complicated.


>
> gert
>
> --
> USENET is *not* the non-clickable part of WWW!
>//
> www.muc.de/~gert/
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025g...@net.informatik.tu-
> muenchen.de
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Gert Doering
Hi,

On Fri, Nov 25, 2016 at 09:38:31AM -0500, Selva Nair wrote:
> Even if the GUI cjecks HKLM and HKCU, toggling the option will not work as
> the GUI cannot reset HKLM values. We do not want to be requiring admin
> rights to run the GUI and that option becomes "readonly" for the user if
> startup is set in HKLM.

How do other packagages handle "this is the system default, but users
can change their own setting"?  (So the admin could say "I want this started
by default, for all users" and individual users can uncheck this "leave
me alone!")

Just thinking aloud, no idea how much effort this is, and whether it's
a useful consideration in the first place.

gert

-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Selva Nair
On Fri, Nov 25, 2016 at 9:00 AM, Илья Шипицин  wrote:

>
>>
>>> 2) enable openvpn-gui startup in HKLM
>>>
>>
>> This will make the "launch on startup" toggle in the gui settings dialog
>> meaningless.
>>
>
>
> not meaningless.
> I think, it makes sense if gui will check both HKLM and HKCU.
>
> but it becomes complicated for gui to "uncheck" HKLM setting
>


Even if the GUI cjecks HKLM and HKCU, toggling the option will not work as
the GUI cannot reset HKLM values. We do not want to be requiring admin
rights to run the GUI and that option becomes "readonly" for the user if
startup is set in HKLM.

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Илья Шипицин
2016-11-25 18:56 GMT+05:00 Selva Nair :

>
> On Fri, Nov 25, 2016 at 8:21 AM, Илья Шипицин 
> wrote:
>
>>
>> I need an advice, what to do next
>>
>> 1) do nothing
>>
>
> What about recreating the HKLM\Software\OpenVPN regkey in full at install?
> Was the consensus to leave it as is?
>
>
>> 2) enable openvpn-gui startup in HKLM
>>
>
> This will make the "launch on startup" toggle in the gui settings dialog
> meaningless.
>


not meaningless.
I think, it makes sense if gui will check both HKLM and HKCU.

but it becomes complicated for gui to "uncheck" HKLM setting


>
>
>> 3) add http://nsis.sourceforge.net/UAC_plug-in to installer
>
>
> This will work only if the user has admin rights and s installing using
> UAC. What if an "admin" is installing for another user?
>
> What about a different approach on this: make launch on startup the
> default in the GUI options -- i.e the first time GUI version 11.x is
> started it will set to autostart for the user. In subsequent version
> updates this will not be changed (to respect user's edits.)
>
> Selva
>
>
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Selva Nair
On Fri, Nov 25, 2016 at 8:21 AM, Илья Шипицин  wrote:

>
> I need an advice, what to do next
>
> 1) do nothing
>

What about recreating the HKLM\Software\OpenVPN regkey in full at install?
Was the consensus to leave it as is?


> 2) enable openvpn-gui startup in HKLM
>

This will make the "launch on startup" toggle in the gui settings dialog
meaningless.


> 3) add http://nsis.sourceforge.net/UAC_plug-in to installer


This will work only if the user has admin rights and s installing using
UAC. What if an "admin" is installing for another user?

What about a different approach on this: make launch on startup the default
in the GUI options -- i.e the first time GUI version 11.x is started it
will set to autostart for the user. In subsequent version updates this will
not be changed (to respect user's edits.)

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Илья Шипицин
hello,

I need an advice, what to do next

1) do nothing
2) enable openvpn-gui startup in HKLM
3) add http://nsis.sourceforge.net/UAC_plug-in to installer

?

2016-11-22 0:51 GMT+05:00 Илья Шипицин :

>
>
> 2016-11-22 0:46 GMT+05:00 Gert Doering :
>
>> Hi,
>>
>> On Tue, Nov 22, 2016 at 12:41:24AM +0500,  ?? wrote:
>> > should we also start openvpn-gui if "launch gui on windows startup" is
>> > selected ?
>>
>> I tend to de-couple this - what about a second checkbox "launch gui now"?
>>
>
> I like the approach of starting services:
>
> https://github.com/OpenVPN/openvpn-build/blob/master/
> windows-nsis/openvpn.nsi#L540
>
> if there's a service, ok, start it, why to ask user ?
>
>
> the same with gui. if user selected to launch it automatically, why wait
> for reboot ?
>
>
>>
>> (With both defaulting to [X] checked)
>>
>> gert
>>
>> --
>> USENET is *not* the non-clickable part of WWW!
>>//
>> www.muc.de/~gert/ 
>> Gert Doering - Munich, Germany
>> g...@greenie.muc.de
>> fax: +49-89-35655025
>> g...@net.informatik.tu-muenchen.de
>>
>
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-25 Thread Илья Шипицин
2016-11-22 0:56 GMT+05:00 Marvin Adeff :

> Hi,
>
> Power User Perspective:
> Please ensure that these [X] selections can be controlled (as in
> "disabled") if openvpn is installed by command line (quiet mode).
>

when installing in silent mode, you can specify any switches, is it ok ?
those settings can be controlled.


>
> Thanks,
> Marvin Adeff
>
>
> > On Nov 21, 2016, at 11:46 AM, Gert Doering  wrote:
> >
> > Hi,
> >
> >> On Tue, Nov 22, 2016 at 12:41:24AM +0500,  ?? wrote:
> >> should we also start openvpn-gui if "launch gui on windows startup" is
> >> selected ?
> >
> > I tend to de-couple this - what about a second checkbox "launch gui now"?
> >
> > (With both defaulting to [X] checked)
> >
> > gert
> >
> > --
> > USENET is *not* the non-clickable part of WWW!
> >   //
> www.muc.de/~gert/
> > Gert Doering - Munich, Germany
> g...@greenie.muc.de
> > fax: +49-89-35655025g...@net.informatik.tu-
> muenchen.de
> > 
> --
> > ___
> > Openvpn-devel mailing list
> > Openvpn-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
> 
> --
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Marvin Adeff
Hi,

Power User Perspective:
Please ensure that these [X] selections can be controlled (as in "disabled") if 
openvpn is installed by command line (quiet mode). 

Thanks,
Marvin Adeff


> On Nov 21, 2016, at 11:46 AM, Gert Doering  wrote:
> 
> Hi,
> 
>> On Tue, Nov 22, 2016 at 12:41:24AM +0500,  ?? wrote:
>> should we also start openvpn-gui if "launch gui on windows startup" is
>> selected ?
> 
> I tend to de-couple this - what about a second checkbox "launch gui now"?
> 
> (With both defaulting to [X] checked)
> 
> gert
> 
> -- 
> USENET is *not* the non-clickable part of WWW!
>   //www.muc.de/~gert/
> Gert Doering - Munich, Germany g...@greenie.muc.de
> fax: +49-89-35655025g...@net.informatik.tu-muenchen.de
> --
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Gert Doering
Hi,

On Mon, Nov 21, 2016 at 02:54:13PM -0500, Selva Nair wrote:
> On Mon, Nov 21, 2016 at 2:41 PM,  ?? 
>  wrote:
> 
> > should we also start openvpn-gui if "launch gui on windows startup" is
> > selected ?
> That would start the GUI with  admin rights, so we should not start the GUI.

Good point.  I withdraw my comments.

gert

-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Gert Doering
Hi,

On Tue, Nov 22, 2016 at 12:51:21AM +0500,  ?? wrote:
> > I tend to de-couple this - what about a second checkbox "launch gui now"?
> 
> I like the approach of starting services:
> 
> https://github.com/OpenVPN/openvpn-build/blob/master/windows-nsis/openvpn.nsi#L540
> 
> if there's a service, ok, start it, why to ask user ?

We do *not* want to start openvpnserv2 or legacy openvpnserv unless
explicitely told - but we need the interactive service.  Quite a bit
of difference.

> the same with gui. if user selected to launch it automatically, why wait
> for reboot ?

"Choice"?  Admin might be installing a laptop but a user will use openvpn
later on...

gert
-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Selva Nair
On Mon, Nov 21, 2016 at 2:41 PM, Илья Шипицин  wrote:

> should we also start openvpn-gui if "launch gui on windows startup" is
> selected ?


That would start the GUI with  admin rights, so we should not start the GUI.

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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Илья Шипицин
2016-11-22 0:46 GMT+05:00 Gert Doering :

> Hi,
>
> On Tue, Nov 22, 2016 at 12:41:24AM +0500,  ?? wrote:
> > should we also start openvpn-gui if "launch gui on windows startup" is
> > selected ?
>
> I tend to de-couple this - what about a second checkbox "launch gui now"?
>

I like the approach of starting services:

https://github.com/OpenVPN/openvpn-build/blob/master/windows-nsis/openvpn.nsi#L540

if there's a service, ok, start it, why to ask user ?


the same with gui. if user selected to launch it automatically, why wait
for reboot ?


>
> (With both defaulting to [X] checked)
>
> gert
>
> --
> USENET is *not* the non-clickable part of WWW!
>//
> www.muc.de/~gert/ 
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025g...@net.informatik.tu-
> muenchen.de
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Gert Doering
Hi,

On Tue, Nov 22, 2016 at 12:41:24AM +0500,  ?? wrote:
> should we also start openvpn-gui if "launch gui on windows startup" is
> selected ?

I tend to de-couple this - what about a second checkbox "launch gui now"?

(With both defaulting to [X] checked)

gert

-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Илья Шипицин
should we also start openvpn-gui if "launch gui on windows startup" is
selected ?

2016-11-22 0:13 GMT+05:00 Илья Шипицин :

>
>
> 2016-11-16 23:47 GMT+05:00 Gert Doering :
>
>> Hi,
>>
>> On Wed, Nov 16, 2016 at 11:39:04PM +0500,  ?? wrote:
>> > > Samuli, Ilya, any idea how hard this is to do?
>> >
>> > it is trivial.
>>
>> Cool :-)
>>
>
> https://github.com/OpenVPN/openvpn-build/pull/50
>
>
> as for many options, I would simplify installer. i.e. we can install
> openvpn-gui always, the same for easy-rsa. it does not make much sense to
> make user choose between those things. But I would make multi language
> installer first :)
>
> I noticed a bug there https://github.com/OpenVPN/openvpn-build/issues/51
> it is not related to my PR, but I'll try to resolve it tomorrow
>
>
>> > I'm going to finish "x86 + x64" installer. The next thing is "check for
>> > .net 4 if openvpnserv2 is checked" and third maybe "start openvpn-gui on
>> > windows logon"
>>
>> Very much looking forward to this - thanks!
>>
>> gert
>>
>> --
>> USENET is *not* the non-clickable part of WWW!
>>//
>> www.muc.de/~gert/ 
>> Gert Doering - Munich, Germany
>> g...@greenie.muc.de
>> fax: +49-89-35655025
>> g...@net.informatik.tu-muenchen.de
>>
>
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-21 Thread Илья Шипицин
2016-11-16 23:47 GMT+05:00 Gert Doering :

> Hi,
>
> On Wed, Nov 16, 2016 at 11:39:04PM +0500,  ?? wrote:
> > > Samuli, Ilya, any idea how hard this is to do?
> >
> > it is trivial.
>
> Cool :-)
>

https://github.com/OpenVPN/openvpn-build/pull/50


as for many options, I would simplify installer. i.e. we can install
openvpn-gui always, the same for easy-rsa. it does not make much sense to
make user choose between those things. But I would make multi language
installer first :)

I noticed a bug there https://github.com/OpenVPN/openvpn-build/issues/51
it is not related to my PR, but I'll try to resolve it tomorrow


> > I'm going to finish "x86 + x64" installer. The next thing is "check for
> > .net 4 if openvpnserv2 is checked" and third maybe "start openvpn-gui on
> > windows logon"
>
> Very much looking forward to this - thanks!
>
> gert
>
> --
> USENET is *not* the non-clickable part of WWW!
>//
> www.muc.de/~gert/ 
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025g...@net.informatik.tu-
> muenchen.de
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Илья Шипицин
2016-11-16 23:35 GMT+05:00 Gert Doering :

> Hi,
>
> On Wed, Nov 16, 2016 at 11:04:29PM +0500,  ?? wrote:
> > very common answer was "it would be great if openvpn-gui could start
> > automatically"
>
> Weird thing is that I seem to remember that it *used* to have such a
> button...  but that might be "some other piece of windows".
>
> Samuli, Ilya, any idea how hard this is to do?
>

it is trivial.

I'm going to finish "x86 + x64" installer. The next thing is "check for
.net 4 if openvpnserv2 is checked" and third maybe "start openvpn-gui on
windows logon"


>
> (I think it's a nice thing to have, and if someone does not want that,
> they can always uncheck the box)
>
> gert
> --
> USENET is *not* the non-clickable part of WWW!
>//
> www.muc.de/~gert/
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025g...@net.informatik.tu-
> muenchen.de
>
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Gert Doering
Hi,

On Wed, Nov 16, 2016 at 11:39:04PM +0500,  ?? wrote:
> > Samuli, Ilya, any idea how hard this is to do?
> 
> it is trivial.

Cool :-)

> I'm going to finish "x86 + x64" installer. The next thing is "check for
> .net 4 if openvpnserv2 is checked" and third maybe "start openvpn-gui on
> windows logon"

Very much looking forward to this - thanks!

gert

-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Gert Doering
Hi,

On Wed, Nov 16, 2016 at 11:04:29PM +0500,  ?? wrote:
> very common answer was "it would be great if openvpn-gui could start
> automatically"

Weird thing is that I seem to remember that it *used* to have such a
button...  but that might be "some other piece of windows".

Samuli, Ilya, any idea how hard this is to do?

(I think it's a nice thing to have, and if someone does not want that,
they can always uncheck the box)

gert
-- 
USENET is *not* the non-clickable part of WWW!
   //www.muc.de/~gert/
Gert Doering - Munich, Germany g...@greenie.muc.de
fax: +49-89-35655025g...@net.informatik.tu-muenchen.de


signature.asc
Description: PGP signature
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Илья Шипицин
2016-11-16 23:12 GMT+05:00 Selva Nair :

>
> On Wed, Nov 16, 2016 at 1:04 PM, Илья Шипицин 
> wrote:
>
>> recently we asked our 900+ users what do they think about our openvpn
>> installation.
>>
>> very common answer was "it would be great if openvpn-gui could start
>> automatically"
>>
>> I guess most of people do not go to "settings". What if we will add
>> checkbox (default enabled) to windows installer ?
>
>
> I agree it would be useful if the installer sets the GUI to start
> automatically at login. Users who do not want it to start can change it
> from the settings dialog.
>

the "number 2" question was "should I actually close openvpn-gui when not
needed or is it ok to keep it"

I'd guess one time "hello, it is openvpn gui, you can keep it it running,
just connect when needed  "got it, ok!"
probably makes sense



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


Re: [Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Selva Nair
On Wed, Nov 16, 2016 at 1:04 PM, Илья Шипицин  wrote:

> recently we asked our 900+ users what do they think about our openvpn
> installation.
>
> very common answer was "it would be great if openvpn-gui could start
> automatically"
>
> I guess most of people do not go to "settings". What if we will add
> checkbox (default enabled) to windows installer ?


I agree it would be useful if the installer sets the GUI to start
automatically at login. Users who do not want it to start can change it
from the settings dialog.

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


[Openvpn-devel] launch openvpn-gui at windows startup

2016-11-16 Thread Илья Шипицин
Hello,

recently we asked our 900+ users what do they think about our openvpn
installation.

very common answer was "it would be great if openvpn-gui could start
automatically"

I guess most of people do not go to "settings". What if we will add
checkbox (default enabled) to windows installer ?

Cheers,
Ilya Shipitsin
--
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel