Try3 said: View Post
[By the way, my suggestion If Defined ProgramFiles(x86) (Set OSType=x64) Else (Set OSType=x86) checks the existence of the system variable not a folder.]
I see. I suppose there are multiple ways of checking whether the OS is x86 or x64. In a somewhat related tale of confusion, I learned the variable for the windows folder as %systemroot%, but I noticed that most here use %windir%. Whatever works, I guess.