Installation Parameters

You can use the following parameters for FastViewer Desktop installation.

Windows

These parameters work only on Windows.

You can use the following parameters for the FastViewer Desktop installation on Windows:

Parameter Description
"/folder=Customers\Vienna\OfficePCs" Sets the folder where the remote client is registered. The folder(s) are created if they don’t already exist. Important: put the entire parameter in quotation marks.
/silent Runs the setup fully automatically, with no prompts or user interaction. The installation progress is visible. The installation path is “C:\Program Files\fastviewer Remote Service”.
/verysilent Runs the setup fully automatically, with no prompts or user interaction. The installation progress is not visible. The installation path is “C:\Program Files\fastviewer Remote Service”.
/replaceexisting=true Lets the setup take over a client that is still registered on the tunnel server. The client must have the same FQDN as the previous installation. This keeps the client’s position in its folder in the remote client overview, along with any information entered earlier (for example, during a reinstall).
/FastTrayDisabled=true Disables the autostart of FastTray. The agent stays online and you can still connect to the client, but FastTray isn't shown. In the Windows Task Manager, under Startup apps, FastTray then shows the status "Disabled".

macOS

These parameters work only on macOS.

You can use the following parameters for the FastViewer Desktop installation on macOS:

Parameter Description
-install 1 Runs the setup in install mode. If you set neither -install nor -uninstall, the setup runs as an update.
-uninstall 1 Runs the setup in uninstall mode.
-gui <true/false> Sets whether the setup shows a user interface. -gui false runs a silent installation with no user interaction.
-folder <path> Sets the folder on the server where the remote client is registered. If you leave this out, the client isn’t assigned to a folder.

Setting the Folder for MDM Deployments

When you deploy the FastViewer Remote Service package (.pkg) with an MDM, you can’t pass the -folder parameter to the setup. Instead, run the script mdm_preinstall_register_folder.sh before the package is installed. The script saves the folder on the Mac, and the setup then registers the remote client in that folder. This has the same effect as starting the setup with -folder <path>. The package itself is installed unchanged; no extra parameters are needed.

Requirements: The script must run as root (MDM pre-install scripts already run as root). The folder name must be written exactly as it appears in your FastViewer account.

You can use the following parameters for the script:

Parameter Description
"<FolderName>" Sets the folder where the remote client is registered during the next installation. Important: put folder names with spaces in quotation marks, for example sudo ./mdm_preinstall_register_folder.sh "Branch Munich".
"" Removes the saved folder. The next installation registers the remote client in the top-level folder again, for example sudo ./mdm_preinstall_register_folder.sh "".

Using the Script with Your MDM

Add the script as the pre-install script of the FastViewer Remote Service package and pass the folder name as the first parameter.

MDM Description
Jamf Pro Add the script to the policy with priority “Before” and put the folder name in parameter 4. Important: Jamf uses parameters 1–3 for its own values, so in the script change FOLDER_NAME="${1-}" to FOLDER_NAME="${4-}".
Microsoft Intune Paste the script as the “Pre-install script” of the macOS app (PKG). Intune doesn’t pass parameters, so in the script replace "${1-}" with the folder name in quotation marks, for example FOLDER_NAME="Branch Munich".
Other MDMs Run the script before the package is installed.

Good to Know

The folder only applies to new installations. If you install the package again on a Mac that already has the service, its old entry is removed and the Mac is registered again in the chosen folder. Automatic updates keep the current folder.

The folder stays saved on the Mac, so later reinstallations use the same folder until you change it with the script.

Don’t edit the service’s own settings files by hand to change the folder. They are reset during installation.

Checking the Result

After the installation, the Mac appears in the chosen folder in your FastViewer account within a few minutes. To see which folder was used, run this on the Mac:

sudo /usr/libexec/PlistBuddy -c "Print :RegisterParentFolder" \
  "/Library/Application Support/com.fastviewer.remote/registry/com.fastviewer.remote.plist"

The installation log is at /var/log/com.fastviewer.remote/PkgPostInstall.log.

Script

#!/bin/sh
#
# mdm_preinstall_register_folder.sh
#
# FastViewer Remote Service: choose the folder that Macs are registered in
# Run this script BEFORE the package is installed.
#
# USAGE
#   sudo ./mdm_preinstall_register_folder.sh "<FolderName>"
#   sudo ./mdm_preinstall_register_folder.sh ""     # back to top-level folder

set -eu

# ---- Settings --------------------------------------------------------------
# Folder name: taken from the first parameter. To use a fixed name instead
# (e.g. for Intune), replace "${1-}" with the name in quotes: "Branch Munich"
# For Jamf Pro, use "${4-}".
FOLDER_NAME="${1-}"
# -----------------------------------------------------------------------------
INSTALLER_DOMAIN="/Library/Preferences/com.fastviewer.remote.FvwRemotedInstaller"

if [ "$(id -u)" -ne 0 ]; then
    echo "This script must be run as root." >&2
    exit 1
fi

if [ -n "$FOLDER_NAME" ]; then
    # "defaults" goes through cfprefsd, so the installer sees the value immediately
    /usr/bin/defaults write "$INSTALLER_DOMAIN" folder -string "$FOLDER_NAME"
    /bin/chmod 644 "$INSTALLER_DOMAIN.plist"
    echo "Preset installer folder: $FOLDER_NAME"
else
    /usr/bin/defaults delete "$INSTALLER_DOMAIN" folder 2>/dev/null || true
    echo "Removed installer folder preset"
fi