Bob Coleman Posted May 3, 2013 Share Posted May 3, 2013 This may be well known and possibly even by design. I'm mentioning it in case not.I recently umgraded from 3.3.6.1 to 3.3.8.1 and discovered that envget('ProgramFiles') was incorrectly(?) returning C:\Program Files (x86) instead of C:\Program Files.The installation process for 3.3.8.1 offers a choice of using native x64 AutoIt components or x86 components with the latter choice being recommened for compatibility. Eventually, I discovered that taking this recommended choice was the cause of envget not behaving as I wanted it to.Though I don't remember, I apparently took the x64 choice when installing previous versions when neither choice was explicitly recommended. Link to comment Share on other sites More sharing options...
Nessie Posted May 3, 2013 Share Posted May 3, 2013 All x86 software running on a x64 system will be installed by default on C:Program Files (x86). When a x64 software running on a x64 system will be installed by default on C:Program Files. So i think that is not an autoit problem Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file Link to comment Share on other sites More sharing options...
SteveP Posted February 14, 2014 Share Posted February 14, 2014 Try something like this, If @OSArch = 'X86' Then $ProgramFilesDir = @ProgramFilesDir ElseIf @OSArch = 'X64' Then $ProgramFilesDir = EnvGet('ProgramW6432') EndIf MsgBox(0,'',$ProgramFilesDir) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now