Hi. Some Autoit Macros return different values on X64 Win7 boxes, dependent on the target choosen upon compiling the script: x86 or x64. Target = x64
@AutoItExe = file01installtoolstestAI3-Test-Macros-x64.exe
@OSArch = X64
@AutoItX64 = 1
@CommonFilesDir = C:Program FilesCommon Files
@ProgramFilesDir = C:Program Files
@SystemDir = C:\Windows\System32\
Target = x86
@AutoItExe = file01installtoolstestAI3-Test-Macros-x86.exe
@OSArch = X64
@AutoItX64 = 0
@CommonFilesDir = C:Program Files (x86)Common Files
@ProgramFilesDir = C:Program Files (x86)
@SystemDir = C:WindowsSysWOW64 I'd like to get as well the "x64" values of these Autoit Macros for the Windows 7 64bit boxes, when using the compilation target = "x86". The background is simply, that few PCs don't have a x64 capable CPU, so the scripts have to run on both, x86 and x64 Win7. Hence I compile them as "target = x86", as this will run on both, x86 and x64 Win7 boxes. But on the Win7 boxes I need to get both, the "x86-macro-values" as well as the "x64-macro-values". One thing I could think of is to compile the script as <scriptname>.exe (x86) and a 2nd time as <scriptname>-x64.exe, and then call the one from the other, in case "@OSArch = X64". But I'd like to avoid to have to compile two versions of these scripts. Any other suggestions? Regards, Rudi. <edit> PS: I missed to mention, that trying to make use the Windows Environment Variables doesn't help here: e.g. envget("Programfiles") and envget("Programfiles(x86)") will *BOTH* return "c:Program files(x64)", when the target of the script is "x86". </edit>