XMapTools Installation & Update Guide
This guide covers how to install and update XMapTools 4.5 and future releases on macOS and Windows using the official bootstrap scripts. These scripts automate downloading, extracting, and configuring XMapTools and the required MATLAB Runtime.
Table of Contents
Prerequisites
| Requirement | macOS | Windows |
|---|---|---|
| OS | macOS (Intel or Apple Silicon) | Windows 10/11 |
| Admin rights | Yes (script prompts for sudo password) | Yes (run PowerShell as Administrator) |
| Internet connection | Required | Required |
| Shell | Terminal (zsh or bash) | PowerShell |
Note: The MATLAB Runtime is installed automatically during a full installation. You do not need a MATLAB licence.
Compatibility: XMapTools 4.5 for Apple Silicon Macs requires MATLAB Runtime 25.1. XMapTools 4.5 for Windows and Intel-based Macs requires MATLAB Runtime v99 (R2020b). The older Runtime v912 can be safely deleted after updating to XMapTools 4.5. On Apple Silicon Macs, v99 can also be deleted.
Security: The code executed by the install command is available at https://xmaptools.ch/install.sh (macOS) and https://xmaptools.ch/install.ps1 (Windows). Do not use any other domain name. The
xmaptools.chdomain is official and the only domain used to distribute XMapTools. If you are behind a firewall that blocks access, ask your system administrator to allow HTTPS traffic to this domain.
macOS
All macOS commands are run in the Terminal app. The script is fetched directly from the XMapTools server and executed locally.
Full Installation (macOS)
A full installation downloads XMapTools and the MATLAB Runtime. Use this when installing XMapTools for the first time or when you need to reinstall the runtime.
Auto-detect architecture (recommended):
curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --installThe script automatically detects whether your Mac uses Apple Silicon or Intel and downloads the correct version.
What happens during installation:
- Any previous XMapTools installation in
/Applications/XMapToolsis removed (you may be prompted for your administrator password). - The installer archive is downloaded and extracted to a temporary directory.
- macOS Gatekeeper quarantine flags are cleared so the app can launch.
- The graphical installer opens — follow the steps below to complete the setup.
- A terminal command
xmaptoolsis created so you can launch the app from any terminal window.
Graphical installer steps (macOS):
- Enter your password to allow the MATLAB Runtime Installer to make changes.
- Press Next.
- Leave the default installation folder
/Applications/XMapToolsto allow automatic updates in the future and press Next. - Leave the default installation folder for the Runtime
/Applications/MATLAB/MATLAB_Runtimeand press Next. - Click Begin Install to install XMapTools and download the Runtime (~2 GB).
- Press Close when the installation is complete.
- You can now start XMapTools using
XMapTools.app.
Update Only (macOS)
An update replaces the XMapTools application bundle without reinstalling the MATLAB Runtime. This is faster than a full installation and preserves your runtime setup.
Prerequisite: XMapTools 4.5 or a more recent version running with Runtime 25.1 (Apple Silicon) or v99 (Intel) must already be installed in
/Applications/XMapToolsand must be closed.
Auto-detect architecture (recommended):
curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --updateWhat happens during an update:
- The script verifies that XMapTools is already installed.
- The latest application archive is downloaded and extracted.
- The previous app bundle (
XMapTools.app) is replaced with the new version. - Gatekeeper quarantine flags are cleared.
- Correct file permissions are set on user configuration files.
- Temporary files are cleaned up.
Show Information (macOS)
To display the available versions, remote file timestamps, detected MATLAB Runtime installations, and usage instructions:
curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --infoArchitecture Selection (macOS)
| Option | When to use |
|---|---|
AppleSilicon | Macs with M1, M2, M3, M4, or later Apple chips (native performance) |
Intel | Macs with Intel processors |
| (omitted) | The script auto-detects the architecture — Apple Silicon is selected on arm64 hardware |
Tip: If you are unsure which architecture your Mac uses, click > About This Mac. If the Chip field says "Apple M…", use
AppleSilicon. If it says "Intel", useIntel.
Terminal Command (macOS)
After installation or update, the script creates a command-line launcher at /usr/local/bin/xmaptools. You can start XMapTools from any terminal by typing:
xmaptoolsThe script also updates your shell configuration file (.zshrc, .bash_profile, or .profile) to ensure /usr/local/bin is on your PATH.
Windows
All Windows commands are run in PowerShell. You should run PowerShell as Administrator (right-click → Run as Administrator).
Full Installation (Windows)
A full installation downloads XMapTools and the MATLAB Runtime.
iex "& { $(irm https://xmaptools.ch/install.ps1) } --install"What happens during installation:
- Any previous XMapTools installation in
C:\Program Files\XMapToolsis removed. - The installer archive is downloaded and extracted to a temporary directory.
- The graphical installer (
XMapToolsInstaller_Windows.exe) is launched — follow the on-screen instructions to complete the setup.
Graphical installer steps (Windows):
- Press Next.
- Leave the default installation folder
Program Files/XMapToolsto allow automatic updates in the future and press Next. - Leave the default installation folder for the Runtime
Program Files/MATLAB/MATLAB_Runtimeand press Next. - Click Begin Install to install XMapTools and download the Runtime (~3 GB).
- Press Close when the installation is complete.
- You can now start XMapTools using
XMapTools.exe.
Update Only (Windows)
An update replaces the XMapTools executable and splash screen without reinstalling the MATLAB Runtime.
Prerequisite: XMapTools must already be installed in
C:\Program Files\XMapTools.
iex "& { $(irm https://xmaptools.ch/install.ps1) } --update"What happens during an update:
- The script verifies that XMapTools is already installed.
- The latest application archive is downloaded and extracted.
XMapTools.exe(andsplash.pngif present) are copied into the existing installation directory.- Temporary files are cleaned up.
Show Information (Windows)
To display the available version, remote file timestamps, detected MATLAB Runtime installations, and usage instructions:
iex "& { $(irm https://xmaptools.ch/install.ps1) } --info"Troubleshooting
"XMapTools does not appear to be installed"
This error occurs when running --update without a prior installation. Run a full installation first:
- macOS:
curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --install - Windows:
iex "& { $(irm https://xmaptools.ch/install.ps1) } --install"
"Invalid MCR version" after updating
If XMapTools reports an invalid MATLAB Runtime version after an update, the runtime may have changed between versions. Perform a full reinstallation using --install to get the matching runtime.
MATLAB Runtime not found
The scripts check for the MATLAB Runtime in:
- macOS:
/Applications/MATLAB/MATLAB_Runtime - Windows:
C:\Program Files\MATLAB\MATLAB Runtime
If the runtime is missing, a full installation (--install) is required.
Supported MATLAB Runtime versions
| Runtime version | Platform |
|---|---|
v99 (R2020b) | macOS Intel, Windows |
R2025a | macOS Apple Silicon (native) |
macOS: "app is damaged" or Gatekeeper warning
The installation script automatically clears Gatekeeper quarantine flags. If you still see a warning, run manually:
sudo xattr -cr /Applications/XMapTools/application/XMapTools.appWindows: script execution policy
If PowerShell refuses to run the script, you may need to adjust the execution policy for the current session:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy BypassThen re-run the installation or update command.
Windows: MATLAB Runtime 2025a conflict
If you already have MATLAB Runtime 2025a (R2025a) installed on your computer, you may receive an error message stating that the installer cannot connect to the MATLAB server. If this happens, open a Command Prompt window (cmd) as an administrator (right-click and select Run as administrator), then run:
cd C:\Program Files\MATLAB\MATLAB_Runtime
rmdir /s R2025aThen re-run the XMapTools installation.
Windows: permission denied
Make sure you are running PowerShell as Administrator. Right-click the PowerShell icon and select Run as Administrator.
XMapTools suddenly not opening (Windows)
If XMapTools was working previously and suddenly stops opening, this can be caused by a corrupted MATLAB Runtime installation or a Windows update that modified system paths. Try the following:
- Perform a full reinstallation using the
--installflag - If the issue persists, uninstall the MATLAB Runtime (see Delete Old Runtime Libraries) and reinstall
Unfreeze XMapTools in case of error
If XMapTools becomes unresponsive during an operation, a dialog box may appear with OK and Cancel buttons. Click Cancel to cancel the current operation and unfreeze XMapTools. Clicking OK may restart the operation and keep XMapTools frozen.
Uninstalling XMapTools (Windows)
To fully uninstall XMapTools on Windows:
- Open Settings → Apps & Features (or Control Panel → Programs and Features)
- Find XMapTools in the list and click Uninstall
- Optionally, uninstall the MATLAB Runtime from the same list if no other MATLAB-based applications require it
Quick Reference
| Action | macOS | Windows |
|---|---|---|
| Install | curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --install | iex "& { $(irm https://xmaptools.ch/install.ps1) } --install" |
| Update | curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --update | iex "& { $(irm https://xmaptools.ch/install.ps1) } --update" |
| Info | curl -fsSL https://xmaptools.ch/install.sh | bash -s -- --info | iex "& { $(irm https://xmaptools.ch/install.ps1) } --info" |
| Install dir | /Applications/XMapTools | C:\Program Files\XMapTools |
| Runtime dir | /Applications/MATLAB/MATLAB_Runtime | C:\Program Files\MATLAB\MATLAB Runtime |
Delete Old Runtime Libraries
After upgrading to XMapTools 4.5 on an Apple Silicon Mac, the older MATLAB Runtime versions (v99, v912) are no longer needed and can be safely removed to free disk space.
Note: On Windows and Intel Macs, MATLAB Runtime v99 is still required. Do not delete it on these platforms.
macOS (Apple Silicon only):
sudo rm -rf /Applications/MATLAB/MATLAB_Runtime/v99
sudo rm -rf /Applications/MATLAB/MATLAB_Runtime/v912Windows:
Use Settings → Apps & Features (or Add or Remove Programs) to uninstall the older MATLAB Runtime versions (R2020b / v912).
