# Auto Update Agent Architecture

The AtiqSoft Update Agent runs as `AtiqSoft.UpdateAgent` in the background for AtiqSoft-owned products.

## Responsibilities

- Check latest product version
- Compare installed version
- Download updates
- Verify SHA256
- Install silently when policy allows
- Report success or failure
- Track previous versions and request rollback after failed update

## Policies

Supported policies are Manual, Notify only, Auto install, Scheduled install, and Internal-only releases.

## Security

The update API requires HTTPS, Device token, Tenant ID, Device ID, and License validation. Packages must pass SHA256 verification before install. The agent does not support arbitrary command execution, remote shell, or PowerShell execution from the server.

## Logs

Update logs are stored in `C:\ProgramData\AtiqSoft\UpdateLogs`.
