| Member with 56 posts. THREAD STARTER | | Join Date: Sep 2011 Location: Florida | |
Solved: What is a valid Windows x86 Program Files variable? This may or may not be the right section for this - I am posting here because I figure this is where I'd get the best answers
I am currently working on a user-friendly HLDS server installer script. It needs access to the 32-bit Program Files directory so it can access the HLDS Update Tool for downloading/updating the server files, and I want the Program Files (x86) directory to be accessed using a variable, so a single script works on both x86 and x64 systems. However, I'm not sure how to do this.
I use the %programfiles(x86)% variable, and it works fine - on 64-bit systems. If I try it in a Windows XP x86 VM, it fails to find the directory - so either my XP installation or 32-bit Windows operating systems in general don't recognize the variable.
In short; what's the best variable for the x86 Program Files directory that will work on both x86 and x64 OS installations? |