# Upgrading and rollback

> How Zopanel for Windows updates: signed releases, the Windows update feed, in-place updates with automatic rollback, MSI upgrades and agent rollouts.

Source: https://zopanel.net/windows/docs/upgrading  
Updated: 2026-11-27

Every Zopanel release is signed twice: each `.exe` and the MSI carry an Authenticode signature from **ESIMONE PTE. LTD.**, and the release manifest that lists the SHA-256 of every file is signed with the Zopanel release key (ed25519). The updater refuses a release whose signature or file hashes do not match, refuses to go to an older version, and rolls back by itself when the new version does not come up healthy.

## The upgrade paths

| Path | When | Status |
|---|---|---|
| `zopanel-setup update` from the new release folder | Servers without Internet access, or when you prefer the command line | available |
| A new MSI over the old one (`msiexec /i`) | Software deployment tools | limited |
| **Updates** page in the panel ("Update now", or automatic by policy) | Normal case when the panel can reach the feed | experimental |
| Agent updates on the other servers, in rounds | After the panel runs the new version | limited |

The in-panel path is marked experimental: it has run on Server 2022 and 2025 test servers, including 0.9.212 → 0.9.213 from the public feed in about 40 seconds, but not yet on Server 2019 or for customers.

## What the updater backs up

Before it changes anything, the updater stops `ZopanelServer` and copies the panel database (`panel.db`) and its keyring to `C:\ProgramData\Zopanel\server\pre-update\<old version>-<UTC time>\`. Only SYSTEM and Administrators can read that folder. Websites, databases and mailboxes are not touched by an update and keep running; people signed in to the panel are disconnected for 1–2 minutes.

Before a production upgrade, also do the part that leaves the server: **Disaster recovery** → **Export now**, and download the `.zpdr` file to somewhere else. Read the release notes, especially "Do before" and "Cannot be rolled back".

## Set the update source

The panel's built-in default source, `https://updates.zopanel.net/`, is not online yet. Point the panel at the Windows feed:

1. **Management** → **Updates**.
2. **Update source**: `https://update.zopanel.net/windows/feed/`.
3. **Channel**: Stable.
4. Save, then **Check now**.

The panel checks every 6 hours. A check is a GET of static, signed files; no identifier is sent, but the feed sees the server's IP. Turn on **Offline mode** if you do not want any check.

## Update from the panel (experimental)

1. **Updates** shows the installed version, any new release, its level (regular or security) and the release notes in your language. Notes and file list are signed; a bad signature fails the check.
2. Click **Update now** and confirm. The broker (SYSTEM) checks the signature again and runs the updater.
3. The page shows downloading → installing → result: **Updated**, **Rolled back** (the new version failed its health check; the old version and database are back) or **Failed**. Each result goes to the activity log and sends an `update.*` webhook.

**Automatic installs**: notify only (default), install security releases, or install every release, inside a maintenance window you set in the server's local time. Automatic installs run with the rights of the administrator who saved the settings, never downgrade, and never retry a release that once failed or rolled back.

## Update from the command line

Copy the new release folder (the `.exe` files with `release.signed.json`) to the panel server and run, as Administrator, inside that folder:

```powershell
cd C:\zopanel-0.9.213
.\zopanel-setup.exe update
```

Or run the new MSI over the old one:

```powershell
msiexec /i C:\zopanel-0.9.213.msi /qn /l*v C:\zopanel-upgrade.log
```

Check the result:

```powershell
& 'C:\Program Files\Zopanel\installer\zopanel-setup.exe' version
Get-Service Zopanel* | Format-Table Name, Status
```

## Update the agents

With several servers, update the panel first. Then **Servers** shows which agents are behind. An agent rollout starts with one canary server, checks its health, waits, then updates the rest in rounds (5 servers per round by default) and stops if a round fails. Servers in maintenance are skipped. The Updates page can start the rollout by itself after a successful panel update. Old agent releases are cleaned up, keeping the running one and the new one.

## Roll back by hand

The updater rolls back by itself when a new version is not healthy. To go back after a successful update, on the panel server:

```powershell
& 'C:\Program Files\Zopanel\installer\zopanel-setup.exe' rollback -discard-changes-since-update
```

This restores the database from before the update, so every change made in the panel since then is lost. Websites created since then may stay on disk without the panel knowing them.

## Repair after an update

If services do not start, run `zopanel-setup repair` from the running release. A machine first installed from an MSI older than 0.9.143 cannot be repaired with that old MSI after an in-panel update (error 1603); use the running release's `zopanel-setup.exe repair` instead. The **Updates** page shows the exact command.

## Logs

- In-panel updates: `C:\ProgramData\Zopanel\panel-update-<version>.log`.
- MSI: the file you passed to `/l*v`.
- The `pre-update` copies are cleaned after each successful update, keeping the 3 newest, everything under 30 days and the copy a rollback needs.
