Overview

By default, a newly installed Remote Agent shows up in the web console without being assigned to a specific folder. If you want the agent to be placed in a particular folder automatically (for example, a folder per customer, department or location), you can tell the installer which folder to use during installation.

How you do this depends on which installer you use:

  • Default Remote installer (.app): pass the folder name with the -folder flag.
  • PKG installer: set the folder in a configuration file via your MDM before the PKG is installed.

In all examples below, replace MyFolder with the exact name of the folder in your web console.

 

Requirements

To install the Remote Agent into a specified folder, you need FastViewer Desktop Version 3.29.0016.

Option 1: Default Remote Installer (.app)

Use this method if you install Remote with the FvwRemoteInstaller application.

  1. Open Terminal on the Mac (or use your deployment tool to run a shell command).
  2. Run the following command, adjusting the path to where the installer is located:
    sudo /path/to/FvwRemoteInstaller.app/Contents/MacOS/FvwRemoteInstaller -install 1 -folder “MyFolder”
  3. Enter your administrator password if prompted.

Once the installation is complete, open the web console and check that the agent appears in the specified folder.

What the Parameters Do

  • install 1 – runs the installation.
  • folder "MyFolder" – the folder in the web console where the agent will be placed.

Option 2: PKG Installer (via MDM)

The PKG installer does not accept a folder flag. Instead, the folder name is written to a Remote configuration file (plist) beforehand. The PKG then picks up this setting during installation.

Order matters: The script below must run before the PKG is installed. If the PKG is installed first, the agent will not be placed in the folder automatically.

 

In your MDM, create a script (or pre-install script) with the following content:

/usr/libexec/PlistBuddy -c "Set :RegisterParentFolder MyFolder" \
"/Library/Application Support/com.fastviewer.remote/registry/com.fastviewer.remote.plist" \
|| /usr/libexec/PlistBuddy -c "Add :RegisterParentFolder string MyFolder" \
"/Library/Application Support/com.fastviewer.remote/registry/com.fastviewer.remote.plist"

Replace both occurrences of MyFolder with your folder name.

Configure your MDM so that this script runs before the Remote PKG is deployed to the device.

Deploy the Remote PKG via your MDM as usual.

Check in the web console that the agent appears in the specified folder.

What the Script Does

The script sets the value RegisterParentFolder in the Remote configuration file:

  • First part (Set): if the entry already exists, it is updated with your folder name.
  • Second part (Add): if the entry does not exist yet, the first part fails and the entry is created instead.

This means the script works on both new and previously configured devices.

Troubleshooting

  • Agent does not appear in the folder: make sure the folder name matches the name in the web console exactly (including upper and lower case).
  • PKG installation: verify in your MDM logs that the PlistBuddy script ran successfully before the PKG was installed.
  • Default installer: make sure the command was run with sudo and that the path to the installer is correct.