# Updates and files

## Updates

CrushTunnel updates itself from crushftp.com.

- It looks for a newer build 20 seconds after it starts and once a day, and asks before it downloads one.
- **Check for updates** in the [tray menu](Tray-Menu.md) looks now.
- **Install latest version (will restart app)** downloads the newest build without asking and restarts.

The download is checked against its published checksum before it is used. The window shows the progress.

An update replaces CrushTunnel's window and its tunnel engine. The Java it runs on comes with the installer; when that needs renewing, run the current installer again. It installs over what you have and keeps your settings.

## Where the settings are

CrushTunnel keeps what it writes in one folder per user, apart from the program:

| System | Folder |
|---|---|
| Windows | `%LOCALAPPDATA%\CrushTunnel\` |
| macOS | `~/Library/Application Support/CrushTunnel/` |

| In it | What it is |
|---|---|
| `prefs.XML` | the server URL, the username, the two tick boxes, and the password (encrypted) when you chose to save it |
| `CrushTunnel.log` | the tunnel's log |
| `settings.properties` | Start with Login and the window's position |
| `output.log`, `output.old.log` | what the app printed in this run and the one before; useful for support |

Reinstalling or updating does not touch this folder. Uninstalling leaves it in place; delete it yourself to remove the saved login.

## The program

| System | Where |
|---|---|
| Windows | `%LOCALAPPDATA%\Programs\CrushTunnel` |
| macOS | `CrushTunnel.app`, usually in Applications |
