Siraya Printer Service — Windows 10/11 install (USB or download)
================================================================

WHAT IS IN THE ZIP
------------------
After download: right-click zip -> Extract All -> open folder.

  Install.cmd              <- double-click this (admin once)
  Update.cmd               <- patches only AFTER Install.cmd succeeded (needs internet)
  Repair.cmd               <- restart agent if already installed
  start-agent.bat          <- used automatically if Windows service fails
  payload/win-x64/app/     <- print agent (includes node_modules — offline install)
  payload/win-x64/runtime/ <- bundled Node.js for Windows

REQUIREMENTS
------------
- Windows 10 or 11 (64-bit)
- BC-95AC (or other) receipt printer installed in Windows Settings -> Printers
- Internet NOT required for Install.cmd (only for Update.cmd later)

BEFORE INSTALL
--------------
1. Plug in BC-95AC via USB.
2. Windows Settings -> Printers -> Add printer / install driver.
3. Confirm the queue name (often **BC-95AC**) appears in the printer list.

INSTALL STEPS
-------------
1. Download from https://pos.siraya.food/setup-printer/ on THIS PC.
2. Extract the full zip (do not run Install.cmd from inside the zip).
3. Double-click **Install.cmd** -> Yes on admin.
4. Wait for **INSTALL OK** and browser at http://127.0.0.1:5000
5. If BC-95AC was not auto-detected, type **BC-95AC** in the queue name box -> Use this printer.
6. Click **Test print**.

UPDATE (later, optional)
------------------------
- Only if Install.cmd already succeeded and agent was working.
- Double-click **Update.cmd** (internet required).
- Does NOT replace a failed first install — run Install.cmd again instead.

AFTER INSTALL
-------------
- Service: SirayaPrinterService (or scheduled task SirayaPrinterAgent as fallback)
- Installed to: C:\Program Files\Siraya\Printer
- Config: %ProgramData%\Siraya\Printer\.env
- Setup / test: http://127.0.0.1:5000
- Install log: %TEMP%\SirayaPrinter-Install.log

TROUBLESHOOTING
---------------
- "Bundle incomplete" -> re-download zip, Extract All, run Install.cmd as admin
- No printer in list -> type exact queue name **BC-95AC** in setup UI
- Test print OK but no paper -> wrong queue selected (not PDF/XPS)
- Update fails -> run Repair.cmd, then Update.cmd; or re-run Install.cmd
