Tuesday 13 March 2018

64 bit - Different PATH environment variable for 32bit and 64bit Windows - is it possible?


Is it possible to have whole or part of PATH environment variable specific to the type of running process's image (32bit/64bit)? When I run some app from within 64bit cmd.exe I would like to have it pick the 64bit version of OpenSSL library whereas when I run some app from within 32bit cmd.exe I would like to have it pick the 32bit version of OpenSSL library.


FOLLOW UP
where.exe does not find OpenSSL libs when %ProgramFiles% variable is used in the PATH environment variable



Answer



Make %ProgramFiles% to %ProgramFiles(x86)% env variable switching to work for you:


Place folders with x32 and x64 versions of OpenSSL library into appropriate %programfiles% and %ProgramFiles(x86)% directories and in the PATH environment variable, use a reference to these folders via the %programfiles% variable.


This way, when you are running in x32-bit environment, your PATH entry %programfiles%/OpenSSL/ will automatically get resolved to %ProgramFiles(x86)%/OpenSSL/ on a disk.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...