--- title: "Specifying the xAgent installation location" slug: "specifying-the-xagent-installation-location" updated: 2026-09-08T19:10:56Z published: 2026-09-08T19:10:56Z canonical: "docs.trellix.com/specifying-the-xagent-installation-location" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Specifying the xAgent installation location To change the installation location of the xAgent software, use the TARGETDIR option. Always use quotes around the path name specified with this option. For example, the following command installs the xAgent software in `C:\MyInstallationDirectory`: `msiexec /i xagtSetup_x.x.x_universal.msi TARGETDIR="C:\MyInstallationDirectory"` The default directory name for installations is `%ProgramFiles%\FireEye\xagt`. If you are migrating your older agents (agents earlier than version 20) to a newer version of the xAgent software and you installed your older agents in a customized installation location, see [Upgrading Older Agents with Customized Installation Locations](/docs/upgrading-older-xagent-s-with-customized-installation-locations) . :