env.ProgramFiles resolves to Program Files (x86)
Hi
We are running TeamCity Professional 2017.2.1 (build 50732)
We want env.ProgramFiles environment variable to resolve to c:\Program Files but it is resolving to c:\Program Files (x86)
There is an env.ProgramFiles(x86) that is resolving as expected.
Any reason why?
thanks
Tim
Please sign in to leave a comment.
I guess this is because of Microsoft Windows. TeamCity is a 32 bit program so ProgramFiles becomes Program Files (x86). And the SDK I need to reference installed itself in c:\Program Files\ but it should have installed itself in c:\Program Files (x86) because it is 32 bit.
To extend a bit on this, TeamCity itself is a java application, that runs on a JVM machine. It can run both in 32 and 64 bit JVMs and will use the environments of the JVM you are using. If you want a 64 bit JVM, please check how to modify it here: https://confluence.jetbrains.com/display/TCD10/Installing+and+Configuring+the+TeamCity+Server#InstallingandConfiguringtheTeamCityServer-Using64bitJavatoRunTeamCityServer