Combined 32/64-bit OpenVPN 2.4_beta1 installer available for testing
Hi,
OpenVPN 2.4_rc1[1] will be bundled as a combined installer[2] that works on both 32-bit and 64-bit Windows versions (Vista and above). A preview installer based on 2.4_beta1 is available here:
<https://build.openvpn.net/downloads/snapshots/openvpn-install-2.4_beta1-I901.exe>
The installer also contains an updated openvpnserv2 (OpenVPNService), which attempts to shut down OpenVPN instances cleanly instead of just killing them on service stop or restart[3].
I already ran the Powershells tests[4] on it, and chipitsine has done independent testing. However, more testing would be welcome. In particular:
- Ensure that by default the files are places to correct directory, that is, C:\Program Files\OpenVPN on both 32-bit and 64-bit Windows
- Test silent install with default settings
- Test silent install to a non-standard directory
- Ensure that registry keys go to the correct (32-bit or 64-bit) registry
- Test that uninstall works as expected
If you manage to the break the installer let me know by Monday. At that point we'd like to get the combined installer patch and the exit-event fix merge.
Thanks!
Signature · 11 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock [1] Due to be released in <2 weeks [2] See <https://github.com/OpenVPN/openvpn-build/pull/44> [3] See <https://github.com/OpenVPN/openvpnserv2/pull/2> [4] See <https://github.com/OpenVPN/openvpn-windows-test>
Hi,
Quoted 12 lines · Samuli Seppänen
Hi,
OpenVPN 2.4_rc1[1] will be bundled as a combined installer[2] that works on both 32-bit and 64-bit Windows versions (Vista and above). A preview installer based on 2.4_beta1 is available here:
<https://build.openvpn.net/downloads/snapshots/openvpn-install-2.4_beta1-I901.exe>
The installer also contains an updated openvpnserv2 (OpenVPNService), which attempts to shut down OpenVPN instances cleanly instead of just killing them on service stop or restart[3].
Quoted 5 lines
I already ran the Powershells tests[4] on it, and chipitsine has done independent testing. However, more testing would be welcome. In particular:
- Ensure that by default the files are places to correct directory, that is, C:\Program Files\OpenVPN on both 32-bit and 64-bit Windows
I have tested the basic install plus adding a 2nd TAP adapter Running my Server (with multiple clients) works (Will leave over night) plus running a client all work as per the label :-)
Quoted 4 lines
- Test silent install with default settings
- Test silent install to a non-standard directory
- Ensure that registry keys go to the correct (32-bit or 64-bit) registry
- Test that uninstall works as expected
Will test these tomorrow (Saturday) (openvpn burn out !)
Quoted 5 lines
If you manage to the break the installer let me know by Monday. At that point we'd like to get the combined installer patch and the exit-event fix merge.
Will do !
Quoted 20 lines · On 18/11/16 20:14, debbie10t wrote:
Hi,
Quoted 17 lines · Samuli Seppänen
Hi,
OpenVPN 2.4_rc1[1] will be bundled as a combined installer[2] that works on both 32-bit and 64-bit Windows versions (Vista and above). A preview installer based on 2.4_beta1 is available here:
<https://build.openvpn.net/downloads/snapshots/openvpn-install-2.4_beta1-I901.exe>
The installer also contains an updated openvpnserv2 (OpenVPNService), which attempts to shut down OpenVPN instances cleanly instead of just killing them on service stop or restart[3].
I already ran the Powershells tests[4] on it, and chipitsine has done independent testing. However, more testing would be welcome. In particular:
Quoted 16 lines
Quoted 2 lines
- Ensure that by default the files are places to correct directory, that is, C:\Program Files\OpenVPN on both 32-bit and 64-bit Windows
I have tested the basic install plus adding a 2nd TAP adapter Running my Server (with multiple clients) works (Will leave over night) plus running a client all work as per the label :-)
Quoted 4 lines
- Test silent install with default settings
- Test silent install to a non-standard directory
- Ensure that registry keys go to the correct (32-bit or 64-bit) registry
- Test that uninstall works as expected
After some initial problems *uninstalling* snapshot versions, I finally managed to install this successfully into a non-standard dir C:\#Tools\Openvpn
Provided that the previous install is fully removed (including registry) then the install is successful. Otherwise it fails in a non-standard dir
Regards
Il 20/11/2016 23:16, debbie10t ha scritto:
Quoted 40 lines · On 18/11/16 20:14, debbie10t wrote:
Quoted 20 lines
Hi,
Quoted 17 lines · Samuli Seppänen
Hi,
OpenVPN 2.4_rc1[1] will be bundled as a combined installer[2] that works on both 32-bit and 64-bit Windows versions (Vista and above). A preview installer based on 2.4_beta1 is available here:
<https://build.openvpn.net/downloads/snapshots/openvpn-install-2.4_beta1-I901.exe>
The installer also contains an updated openvpnserv2 (OpenVPNService), which attempts to shut down OpenVPN instances cleanly instead of just killing them on service stop or restart[3].
I already ran the Powershells tests[4] on it, and chipitsine has done independent testing. However, more testing would be welcome. In particular:
Quoted 16 lines
Quoted 2 lines
- Ensure that by default the files are places to correct directory, that is, C:\Program Files\OpenVPN on both 32-bit and 64-bit Windows
I have tested the basic install plus adding a 2nd TAP adapter Running my Server (with multiple clients) works (Will leave over night) plus running a client all work as per the label :-)
Quoted 4 lines
- Test silent install with default settings
- Test silent install to a non-standard directory
- Ensure that registry keys go to the correct (32-bit or 64-bit) registry
- Test that uninstall works as expected
Quoted 7 lines
After some initial problems *uninstalling* snapshot versions, I finally managed to install this successfully into a non-standard dir C:\#Tools\Openvpn
Provided that the previous install is fully removed (including registry) then the install is successful. Otherwise it fails in a non-standard dir
Hi,
How and at which point does it fail if previous OpenVPN version is not uninstalled first?
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
A message that is not in the archive (sent off-list or not yet received): [email protected]...
Quoted 15 lines · On 21/11/16 17:00, debbie10t wrote:
Quoted 11 lines · Samuli Seppänen
Il 20/11/2016 23:16, debbie10t ha scritto:
Quoted 3 lines
Provided that the previous install is fully removed (including registry) then the install is successful. Otherwise it fails in a non-standard dir
Hi,
How and at which point does it fail if previous OpenVPN version is not uninstalled first?
Quoted 7 lines
In fact, if any previous version is *not Fully Uninstalled* first (Which means cleaning the registry by manually removing entire registry key
HKLocalMach_SW_Openvpn) .. And then this version is installed to any *other* directory than the one it was previously installed to .. The resulting installation will not work.Please see attached
Sorry .. .zip blacklisted
See here:
UNINSTALLING From C:\#Tools\Openvpn
Stopping OpenVPN-GUI...
Removing OpenVPN Services...
OpenVPN Legacy Service removed.
Stopping OpenVPN Interactive Service.
OpenVPN Interactive Service stopped.
OpenVPN Interactive Service removed.
Uninstalling assembly 'C:\#Tools\OpenVPN\bin\openvpnserv2.exe'.
Affected parameters are:
assemblypath = C:\#Tools\OpenVPN\bin\openvpnserv2.exe
logfile = C:\#Tools\OpenVPN\bin\openvpnserv2.InstallLog
Removing EventLog source OpenVpnService.
Service OpenVpnService is being removed from the system...
Service OpenVpnService was successfully removed from the system.
Target was found and removed from PATH
Delete file: C:\#Tools\OpenVPN\bin\openvpn-gui.exe
Delete file: C:\Users\Public\Desktop\OpenVPN GUI.lnk
Delete file: C:\#Tools\OpenVPN\bin\openvpn.exe
Delete file: C:\#Tools\OpenVPN\bin\openvpnserv.exe
Delete file: C:\#Tools\OpenVPN\bin\openvpnserv2.exe
Delete file: C:\#Tools\OpenVPN\bin\libeay32.dll
Delete file: C:\#Tools\OpenVPN\bin\ssleay32.dll
Delete file: C:\#Tools\OpenVPN\bin\liblzo2-2.dll
Delete file: C:\#Tools\OpenVPN\bin\libpkcs11-helper-1.dll
Delete file: C:\#Tools\OpenVPN\config\README.txt
Delete file: C:\#Tools\OpenVPN\log\README.txt
Delete file: C:\#Tools\OpenVPN\bin\openssl.exe
Delete file: C:\#Tools\OpenVPN\doc\license.txt
Delete file: C:\#Tools\OpenVPN\doc\INSTALL-win32.txt
Delete file: C:\#Tools\OpenVPN\doc\openvpn.8.html
Delete file: C:\#Tools\OpenVPN\icon.ico
Delete file: C:\#Tools\OpenVPN\Uninstall.exe
Delete file: C:\#Tools\OpenVPN\easy-rsa\openssl-1.0.0.cnf
Delete file: C:\#Tools\OpenVPN\easy-rsa\vars.bat.sample
Delete file: C:\#Tools\OpenVPN\easy-rsa\init-config.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\README.txt
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-ca.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-dh.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-key-server.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-key.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-key-pass.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\build-key-pkcs12.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\clean-all.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\index.txt.start
Delete file: C:\#Tools\OpenVPN\easy-rsa\revoke-full.bat
Delete file: C:\#Tools\OpenVPN\easy-rsa\serial.start
Delete file: C:\#Tools\OpenVPN\sample-config\client.ovpn
Delete file: C:\#Tools\OpenVPN\sample-config\sample.ovpn
Delete file: C:\#Tools\OpenVPN\sample-config\server.ovpn
Remove folder: C:\#Tools\OpenVPN\doc\
Remove folder: C:\#Tools\OpenVPN\easy-rsa\
Remove folder: C:\#Tools\OpenVPN\sample-config\
Remove folder: C:\#Tools\OpenVPN\log\
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN HOWTO.url
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Manual Page.lnk
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Support.url
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Web Site.url
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Wiki.url
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Windows Notes.lnk
Remove folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\OpenVPN GUI.lnk
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN configuration file directory.lnk
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN log file directory.lnk
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN Sample Configuration Files.lnk
Remove folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Uninstall OpenVPN.lnk
Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\Generate a static OpenVPN key.lnk
Remove folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\
Remove folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\
Completed
#####
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"
#####
INSTALL To C:\Program Files\Openvpn
Removing any previous OpenVPN services...
Output folder: C:\Program Files\OpenVPN\bin
Extract: openvpn.exe... 100%
Output folder: C:\Program Files\OpenVPN\doc
Extract: INSTALL-win32.txt... 100%
Extract: openvpn.8.html... 100%
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Manual Page.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation\OpenVPN Windows Notes.lnk
Output folder: C:\Program Files\OpenVPN\bin
Extract: openvpnserv2.exe... 100%
Extract: openvpnserv.exe... 100%
Output folder: C:\Program Files\OpenVPN\config
Output folder: C:\Program Files\OpenVPN\sample-config
Extract: sample.ovpn... 100%
Extract: client.ovpn... 100%
Extract: server.ovpn... 100%
Create folder: C:\Program Files\OpenVPN\log
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Utilities\Generate a static OpenVPN key.lnk
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN Sample Configuration Files.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN log file directory.lnk
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Shortcuts\OpenVPN configuration file directory.lnk
Installing OpenVPN Services...
OpenVPN Legacy Service installed.
OpenVPN Interactive Service installed.
Installing assembly 'C:\Program Files\OpenVPN\bin\openvpnserv2.exe'.
Affected parameters are:
assemblypath = C:\Program Files\OpenVPN\bin\openvpnserv2.exe
logfile = C:\Program Files\OpenVPN\bin\openvpnserv2.InstallLog
Installing service OpenVpnService...
Service OpenVpnService has been successfully installed.
Creating EventLog source OpenVpnService in log Application...
See the contents of the log file for the C:\Program Files\OpenVPN\bin\openvpnserv2.exe assembly's progress.
The file is located at C:\Program Files\OpenVPN\bin\openvpnserv2.InstallLog.
Committing assembly 'C:\Program Files\OpenVPN\bin\openvpnserv2.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Program Files\OpenVPN\bin\openvpnserv2.exe
logfile = C:\Program Files\OpenVPN\bin\openvpnserv2.InstallLog
Output folder: C:\Users\root\AppData\Local\Temp
Extract: tap-windows.exe... 100%
Installing TAP (may need confirmation)...
Delete file: C:\Users\root\AppData\Local\Temp\tap-windows.exe
Output folder: C:\Program Files\OpenVPN\bin
Extract: openvpn-gui.exe... 100%
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\OpenVPN GUI.lnk
Create shortcut: C:\Users\Public\Desktop\OpenVPN GUI.lnk
Output folder: C:\Program Files\OpenVPN\bin
Extract: openssl.exe... 100%
Output folder: C:\Program Files\OpenVPN\easy-rsa
Extract: openssl-1.0.0.cnf... 100%
Extract: vars.bat.sample... 100%
Extract: init-config.bat
Extract: README.txt... 100%
Extract: build-ca.bat... 100%
Extract: build-dh.bat... 100%
Extract: build-key-server.bat... 100%
Extract: build-key.bat... 100%
Extract: build-key-pass.bat... 100%
Extract: build-key-pkcs12.bat... 100%
Extract: clean-all.bat... 100%
Extract: index.txt.start
Extract: revoke-full.bat... 100%
Extract: serial.start
Target was appended to PATH
Create folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Documentation
Create shortcut: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OpenVPN\Uninstall OpenVPN.lnk
Output folder: C:\Program Files\OpenVPN\bin
Extract: libeay32.dll... 100%
Extract: ssleay32.dll... 100%
Output folder: C:\Program Files\OpenVPN\bin
Extract: liblzo2-2.dll... 100%
Output folder: C:\Program Files\OpenVPN\bin
Extract: libpkcs11-helper-1.dll... 100%
Output folder: C:\Program Files\OpenVPN
Extract: icon.ico... 100%
Output folder: C:\Program Files\OpenVPN\doc
Extract: license.txt... 100%
Created uninstaller: C:\Program Files\OpenVPN\Uninstall.exe
[SC] ChangeServiceConfig SUCCESS
Started OpenVPNServiceInteractive
Completed
#####
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:\\Program Files\\OpenVPN"
#####
GUI Error:
CreateProcess failed, exe='C:\#Tools\OpenVPN\bin\openvpn.exe cmdline='openvpn --version' dir='C:#Tools\OpenVPN\bin' [OK]
Hi,
Quoted 1 line · On Mon, Nov 21, 2016 at 12:34 PM, debbie10t <[email protected]...> wrote:
UNINSTALLING From C:\#Tools\Openvpn
...
Registry remains:
Quoted 11 lines
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]
Quoted 7 lines
"config_dir"="C:\\#Tools\\OpenVPN\\config"
"config_ext"="ovpn"
"exe_path"="C:\\#Tools\\OpenVPN\\bin\\openvpn.exe"
Quoted 8 lines
"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
Il 21/11/2016 19:00, debbie10t ha scritto:
Quoted 15 lines · Samuli Seppänen
Quoted 11 lines
Il 20/11/2016 23:16, debbie10t ha scritto:
Quoted 3 lines
Provided that the previous install is fully removed (including registry) then the install is successful. Otherwise it fails in a non-standard dir
Hi,
How and at which point does it fail if previous OpenVPN version is not uninstalled first?
Quoted 7 lines
In fact, if any previous version is *not Fully Uninstalled* first (Which means cleaning the registry by manually removing entire registry key
HKLocalMach_SW_Openvpn) .. And then this version is installed to any *other* directory than the one it was previously installed to .. The resulting installation will not work.Please see attached
Hi,
Yes, I actually noticed that myself when testing the combined installer patch[1] myself:
<https://github.com/OpenVPN/openvpn-build/issues/49>
That problem is also present in official 2.4_beta1 installers also and does not seem related to silent or interactive installations.
Samuli