Giter VIP home page Giter VIP logo

Comments (12)

FreeBeing11 avatar FreeBeing11 commented on August 26, 2024 1

@FreeBeing11 @chipitsine Could you try out this build (don't forget to install EasyRSA component) and see if problem is solved for you?

Hi Istipakov,

Thank you for this new OpenVPN build, with a new "EasyRSA-Start.bat" script.

I tried that on Windows 10 22H2 x64 (French), and it works, thank you ;)

With EasyRSA Shell, now I obtain this PATH with "set" command :
PATH='C:/Program Files/OpenVPN/easy-rsa;C:/Program Files/OpenVPN/easy-rsa/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\Maxime\AppData\Local\Microsoft\WindowsApps;C:\Program Files\OpenVPN\bin'

Now, PATH is right, and "openssl.exe" can be used directly.

Thanks a lot.

from openvpn-build.

chipitsine avatar chipitsine commented on August 26, 2024

from openvpn-build.

TinCanTech avatar TinCanTech commented on August 26, 2024

This issue has already been reported:
OpenVPN/easy-rsa#926 (comment)

from openvpn-build.

cron2 avatar cron2 commented on August 26, 2024

Moving this to the openvpn-build repo, because it's something in the "build installer" process that is buggy, not "a bug in openvpn"

from openvpn-build.

lstipakov avatar lstipakov commented on August 26, 2024

I cannot reproduce it, tried on both Windows 10 and Windows 11.

c:\>ver

Microsoft Windows [Version 10.0.19045.2728]

c:\>FOR /F "tokens=2*" %a IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN" /ve') DO echo KEY: %b

c:\>echo KEY: C:\Program Files\OpenVPN\
KEY: C:\Program Files\OpenVPN\

I don't have REG_SZ in output and EasyRSA-Start.bat works just fine.

@chipitsine @TinCanTech do you have any ideas what might be wrong?

from openvpn-build.

shipitsin-ilia avatar shipitsin-ilia commented on August 26, 2024

Interesting. I'll have a look

from openvpn-build.

cron2 avatar cron2 commented on August 26, 2024

What Windows version is this exactly? My current guess is that it's a national language thing, based on the output I get from my test machines (german/english language versions) that return

HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN
   (Standard)   REG_SZ   C:\Program Files\OpenVPN

... which is parsed just fine, but I assume that if the (standard) part gets turned into something with a blank in it, the FOR parser will fail, and include the REG_SZ into the string afterwards...

So, @FreeBeing11 , can you run the REG QUERY ... /ve command from the script (only the query) and show us your results?

from openvpn-build.

lstipakov avatar lstipakov commented on August 26, 2024

I have slightly different output (Finnish/English):

HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN
    (Default)    REG_SZ    C:\Program Files\OpenVPN\

from openvpn-build.

cron2 avatar cron2 commented on August 26, 2024

But it's still "3 columns". I guess the original poster has something like (some thing) REG_SZ ... with a blank in, so the parsing "give me field 3+" will then include REG_SZ...

Is there a way to change the FOR statement to do "give me all after REG_SZ" instead?

from openvpn-build.

lstipakov avatar lstipakov commented on August 26, 2024

Here is an output from colleague's machine:

Microsoft Windows [Version 10.0.19044.2728]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

C:\Users\diach>REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE" /ve

HKEY_LOCAL_MACHINE\SOFTWARE
    (по умолчанию)    REG_SZ

I am not too much into batch, but let's try to find a solution.

from openvpn-build.

lstipakov avatar lstipakov commented on August 26, 2024

@FreeBeing11 @chipitsine Could you try out this build (don't forget to install EasyRSA component) and see if problem is solved for you?

from openvpn-build.

chipitsine avatar chipitsine commented on August 26, 2024

from openvpn-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.