The Agent installation to endpoint computer implies bringing at least 2 files: the installer or archive and the configuration file sync.conf which contains information to connect to your Management Console.
Sometimes it is preferable to package sync.conf inside the installer to get a single-file-installer which does not require any extra actions, in cases like:
- The installation process is done by a novice user and not supervised by the Administrator
- The administrator has several configuration files for different groups of users \ locations
- For centrally managed deployment systems where Applications are installed without any user interaction.
The resulting .pkg or .msi files are unsigned. If your installation policy requires files to be signed, you'll have to sign them with your own digital certificate.
Download the script from the Resilio, Inc. public Git repository. The packaging script requires Powershell v5.0 or newer to run.
Download the Resilio Connect Agent MSI installers from Connect download site and your sync.conf from your Management Console. Running the script depends on the shell you use:
- If you run the script from Powershell:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
attach-sync-conf-to-msi.ps1 -MSIPath <path_to_msi> -SyncConfPath <path_to_config>
- If you run the script from the command prompt:
powershell.exe -ExecutionPolicy Bypass -Noprofile attach-sync-conf-to-msi.ps1 -MSIPath <path_to_msi> -SyncConfPath <path_to_config>
The script will exit and rename the MSI to <MSI_Name>_configured.msi. If you plan to install Resilio Connect Agents on computers with different architectures (x86 and x64), you need to run the script separately for each MSI installer.
Downloads the script from the Resilio, Inc. public Git repository. The packaging shell script requires the pkgbuild tool to be installed (bundled with XCode tool and is often is preinstalled on your Mac). The downloaded package has a readme file with the below instructions as well.
Download the Resilio Connect Agent for Macs from our download page and also the sync.conf file from your Resilio Connect Management Console. You need to create a folder that has the following set of files in it (in the screenshot below we created one called script):
- make_package.sh (downloaded in step 1)
- scripts (the folder containing deployment scripts, downloaded in step 1)
- Resilio-Connect-Agent.dmg (use the version you want to deploy)
- sync.conf (download from your management console)
Open Terminal and navigate to the folder containing make_package.sh. Run commands:
chmod +x make_package.sh
The script will create a Resilio-Connect-Agent.pkg file in the same directory. This package uses standard OS X installation dialog and registers Agent as LaunchAgent which starts as soon as the user logs in to their OS X.
Important for MDM deployments
If you plan to centrally deploy Resilio Connect Agents 2.11 or higher via an MDM, you should also whitelist the Resilio Connect Kernel Extension. This article helps to explain how.