@echo off :CheckOS if exist "%ProgramFiles(x86)%" (goto 64Bit) else (goto 32Bit) :64Bit if exist "c:\program files\microsoft office 15\root\office15\lync.exe" (goto END) else (goto INSTALL) :INSTALL pushd \\usbisfs01\Groups$\IT\Lync\Lync\ setup.exe /configure configuration-en-64.xml popd exit Goto END :32Bit @echo off if exist "c:\program files\microsoft office 15\root\office15\lync.exe" (goto END) else (goto INSTALL) :INSTALL pushd \\usbisfs01\Groups$\IT\Lync\Lync\ setup.exe /configure configuration-en.xml popd exit Goto END :END exit