0
0
I installed both 32bit and 64bit version of OpenSSL libs on Vista x64. The 32bit version was installed in c:\Program Files (x86)\OpenSSL
and the 64bit version was installed in c:\Program Files\OpenSSL
. Then I added the entry %ProgramFiles%\OpenSSL
to the PATH
environment variable. %ProgramFiles%\OpenSSL
is expanded to c:\Program Files (x86)\OpenSSL
for 32bit programs and it's expanded to c:\Program Files\OpenSSL
for 64bit programs. The idea is to have 32bit programs use 32bit version of OpenSSL libs and 64bit programs use 64bit version. I wanted to check if this works by running 32bit cmd.exe and issuing where ssleay32.dll
and then by running 64bit cmd.exe and issuing the same. However in both cases I get the error INFO: Could not find files for the given pattern(s).
What's wrong?
This is a follow up to Different PATH environment variable for 32bit and 64bit Windows - is it possible?
What happens when you search for openssl.exe, rather than a dll? Also, have you tried another method, such as executing openssl.exe in cmd to see if it is the right one ? (You may use Process Monitor to see which openssl.exe version is executing). It may be that "where" does not work very well under your environment.
– harrymc – 2011-02-23T06:50:39.497where openssl.exe
finds the one in OpenVPN folder which is after OpenSSL one in the PATH. – Piotr Dobrogost – 2011-02-23T20:06:36.110I think you have proven very soundly that %ProgramFiles% does not work as expected in the PATH. Maybe cmd -k will work with the parameter of "set path=%path%;%ProgramFiles%\OpenSSL", or some other combination.
– harrymc – 2011-02-23T20:51:38.390