ShareSync: Mass Client Deployment

You are here:

ShareSync can be deployed in an organization using a startup script of AD group policy. Users can also install desktop application themselves if they have administrative privileges.

Test this procedure on a small subset of computers before implementing it for the entire domain. To do this you can leave only test computer accounts in security filtering of the group policy or apply the group policy to the organizational unit that contains only test computers.

Workflow

  1. Create a group policy for ShareSync installation.
  2. Download the following files and place them in Scripts folder of this group policy, or in another shared folder that will be accessible to computer account of your domain:
    Place the installation script into the Scripts folder of the group policy.

    1. .NET 4 setup redistributable from Microsoft http://www.microsoft.com/en-us/download/details.aspx?id=17718
    2. ShareSync windows app setup from ShareSync web app
  3. Update the script so that paths to .NET installer and ShareSyncSetup.exe are correct and accessible.
  4. Add this installation script to the group policy in Computer Configuration\Policies\Windows Settings\Scripts\startup.

Installation script

BAT script for ShareSync installation performs the following actions:

  1. Check that .NET 4 is installed. If not, install it from a network share.
  2. Check that ShareSync is installed. If not, install it from a network share.

@echo off

reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client2" > NUL 2> NUL
IF %ERRORLEVEL% == 0 GOTO APP_CHECK_INSTALLATION
echo "Installing .NET Framework 4"

\\server\path_to_setup\dotNetFx40_Full_x86_x64.exe /q


:APP_CHECK_INSTALLATION
IF EXIST "%ProgramFiles%\ShareSync" GOTO APP_ALREADY_INSTALLED
echo Installing ShareSync

\\server\path_to_setup\ShareSyncSetup.exe /quiet /L*V "%temp%\ShareSyncInstallLog.txt"

GOTO END
:APP_ALREADY_INSTALLED
echo ShareSync is already installed.
:END

ShareSync setup parameters:

  • /quiet – no UI will be displayed
  • /L*V “%temp%\ShareSyncInstallLog.txt” – the log will be written to a temp folder. If the script is run under System account, that folder would be C:\Windows\temp

Setup will also create messages in the Windows Event Log upon successful or failed installation.