[Solved] batch file code to detect 32-bit vs 64-bit office not working [closed]

If you’re wanting to check the bitness, version and install location of Microsoft Office, you could give this script a test to see if it works for you any better: @Echo Off If Defined PROCESSOR_ARCHITEW6432 ( Start “” /D “%__CD__%” “%SystemRoot%\SysNative\cmd.exe” /C “%~f0″&Exit /B) Set /A “OSA=MWB=%PROCESSOR_ARCHITECTURE:~-2%” If %OSA%==86 Set “MWB=32” Set “MOB=”&Set “GUID=”&Set “REG=%__AppDir__%reg.exe” … Read more