Packaging sync.conf inside Agent installer

Overview

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:

Installation process is done by user and not supervised by administrator

Administrator has several configuration files for different groups of users \ locations

Important Note

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.

packaging sync.conf inside the installer

WINDOWSOS X

Step 1

Download the script from Resilio, Inc. public Git repository. The packaging script requires Powershell v5.0 or newer to run.

Step 2

Download Agent MSI installers from Connect download site and sync.conf from your Management Console. Running the script depends on shell you use:

Result

The script will exit and rename the MSI to <MSI_Name>_configured.msi. If you plan to install agents on computers with different architectures (x86 and x64), you need to run script separately for each MSI installer.

Step 1

Downloads solution from Resilio, Inc. public Git repository. The packaging shellscript requires pkgbuild tool to be installed (bundled with XCode tool and sometimes is preinstalled on your Mac).

Step 2

Download Agent for Macs, the mountable disk image, from our download site and place it next to make_package.sh script. Also download sync.conf from your Management Console and put in the same folder.

Step 3

Open Terminal and navigate to the folder containing make_package.sh. Run commands:

chmod +x make_package.sh./make_package.sh

Result

The script will create 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 user logs in to their OS X.