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.
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.