Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions InstallSyncFx.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
REM Copyright © Microsoft Corporation. All Rights Reserved.
REM Copyright © Microsoft Corporation. All Rights Reserved.
REM This code released under the terms of the
REM Apache License, Version 2.0 (http://opensource.org/licenses/Apache-2.0)

REM This script uses code from http://www.robvanderwoude.com/
REM Install Microsoft Sync Framework 2.1

@ECHO OFF
SETLOCAL
IF "%~1"=="" (SET Computer=%ComputerName%) ELSE (SET Computer=%~1)
IF /I NOT "%Computer%"=="%ComputerName%" (
PING %Computer% -n 2 2>NUL | FIND "TTL=" >NUL || GOTO Syntax
)
FOR /F "tokens=2 delims==" %%A IN ('WMIC /Node:%Computer% Path Win32_Processor Get AddressWidth /Format:list') DO SET OSVersion=%%A
IF "%OSVersion%"=="64" (
%windir%\System32\msiexec.exe /i "%~dp0\syncfx\Synchronization-v2.1-x64-ENU.msi" /quiet
%windir%\System32\msiexec.exe /i "%~dp0\syncfx\ProviderServices-v2.1-x64-ENU.msi" /quiet
%windir%\System32\msiexec.exe /i "%~dp0\syncfx\ProviderServices-v2.1-x64-ENU.msi" /quiet) ELSE (
%windir%\System32\msiexec.exe /i "%~dp0\syncfx\Synchronization-v2.1-x86-ENU.msi" /quiet
%windir%\System32\msiexec.exe /i "%~dp0\syncfx\ProviderServices-v2.1-x86-ENU.msi" /quiet)