﻿Cosmos Connect Windows installer

Build: ./build.ps1 -PayloadDir ../release-0.3.3
Output: output/CosmosSetup.exe
Server filename: CosmosSetup-0.3.3.exe

The official Inno Setup 7.1.1 compiler lives in buildtools/inno in PORTABLE mode.
Upstream download: https://github.com/jrsoftware/issrc/releases/download/is-7_1_1/innosetup-7.1.1-x64.exe
Upstream Authenticode verified Valid, publisher Pyrsys B.V.
The generated Cosmos installer is NOT Authenticode-signed; no publisher certificate was available.

Installation:
- current Windows user only, no administrator request;
- LocalAppData/Programs/CosmosConnect;
- Start menu and optional desktop shortcut;
- HKCU cosmosconnect:// handler;
- Windows Installed apps entry and uninstaller;
- account.dat stays in LocalAppData/CosmosConnect and is not removed;
- existing ZIP updater works in the installed directory; it leaves the uninstaller intact.
- Windows Installed apps version represents the installer version. A later ZIP-only update
  does not change that registry label; a later installer refreshes it.

QA:
./build.ps1 -TestBuild
./test-install.ps1
Uses a separate AppId, protocol and shortcut name, plus a workspace-local install directory.
The same installer logic and actual release payload are exercised. Install, reinstall and
uninstall succeed, 725 files match the payload, old personal data survives, no app auto-launch
and existing Cosmos registration/shortcuts/account data remain unchanged. See qa-result.json.

Keep ZIP update.json metadata unchanged. Serve the versioned installer through the explicit
Caddy allowlist. A stable /windows/CosmosSetup.exe route may redirect to the current version
only when its installer exists. Publish the immutable file before enabling the landing link.
Include CosmosSetup.iss/build.ps1 in the next source archive; buildtools binaries need not be included.

