# Safe update guide

The installer already uses one fixed `AppId`, and customer data is stored separately in `%LOCALAPPDATA%\ShopManagerPOS`. Therefore a new installer replaces program files but keeps `shop.db`, settings, and backups.

## Build a new release

1. Increase `MyAppVersion` in `ShopManagerPOS.iss` (for example `1.0.2`) and change the output filename to match.
2. Run `build_exe.bat`.
3. Run `build_setup.bat`.
4. Send the new installer from the `release` folder to the customer.

## Update on the customer PC

1. Take a backup from **Administration → Backups**.
2. Close Shop Manager POS.
3. Run the new `ShopManagerPOS-Setup-x.x.x.exe` file.
4. Choose **Install**. Do not uninstall the old version first.

The installer detects the existing app and upgrades it. If it says the app is open, close it and run the installer again.
