If Exist %systemroot%\share\%computername%.txt goto END
If Exist "C:\Program Files (x86)\" goto X64
Set ARCHITECTURE=x86
REM Install Microsoft Online Services Sign-in Assistant
if exist "C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\MSOIDSVC.EXE" goto lync32
\\server_IP\Lync_Software\x86\msoidcli_32bit.msi /quiet
:lync32
REM Creating Lync and office suite Client folder on %systemroot%\share\
IF NOT EXIST "C:\Program Files\Microsoft Lync\communicator.exe" Copying Lync software to Lync Software folder on %systemroot%\share\
pushd "\\server_IP\Lync_Software\x86\"
XCOPY "*.*" "%systemroot%\share\Lync_Client\X86" /I /Y /Qlient\X86" MKDIR "%systemroot%\share\Lync_Client\X86"
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\LyncSetup.exe" /install /silent
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\Lync.msp" /quiet /norestart
Echo "Lync and Office clients Successfully installed" on %COMPUTERNAME% > %systemroot%\share\%Computername%.txt
:X64
If NOT EXIST "C:\Program Files (x86)\" goto END
Set ARCHITECTURE=x64
REM Install Microsoft Online Services Sign-in Assistant
if exist "C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\MSOIDSVC.EXE" goto lync64
\\server_IP\Lync_Software\x64\msoidcli_64bit.msi /quiet
:lync64
REM Creating Lync Client folder on %systemroot%\share\
IF NOT EXIST "%systemroot%\share\Lync_Client\X64" MKDIR "%systemroot%\share\Lync_Client\X64"
REM Copying Lync software to Lync Software folder on %systemroot%\share\
pushd "\\server_IP\Lync_Software\x64\"
XCOPY "*.*" "%systemroot%\share\Lync_Client\X64" /I /Y /Q
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\LyncSetup.exe" /install /silent
"%systemroot%\share\Lync_Client\%ARCHITECTURE%\Lync.msp" /quiet /norestart
Echo "Lync and Office clients Successfully installed" on %COMPUTERNAME% > %systemroot%\share\%Computername%.txt
:END
EXIT
No comments:
Post a Comment