windows: a setup program, and an uninstall entry in Settings > Apps

ProxySuite-<version>-windows-x64-setup.exe (NSIS, English and Russian):
it unpacks the release into its temporary folder and runs the release's
own proxy-suite-service.exe install from there, as install.cmd does from
the zip (unpacked straight into Program Files, an upgrade would find its
files in use). It refuses 32-bit Windows and anything before 10 1903, and
offers Windows' OpenSSH Client, unchecked, for the SSH tunnel.

install now writes the entry in Settings > Apps (uninstall.cmd; quietly,
the service's uninstall), and uninstall removes it, with WinDivert's
driver service when it is the suite's own.

The release workflow publishes the setup beside the zip. The app's
icon and GPUI's manifest share one resource (llvm-rc for both); the
build scripts' clones retry, and are kept for the next build.
Tested under Wine: tools/wine-setup-test.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 13:45:09 +03:00
1 parent ae31e499ca
commit ae58bd1f12
14 files changed
+421 -33

No files matched your search

+28 -13
View File
@@ -29,7 +29,7 @@ tray icon) or with `proxy-ctl`, as upstream's is.
| whitelist-bypass | `whitelistBypass`: [whitelist-bypass](https://github.com/kulikov0/whitelist-bypass)'s headless creators and joiners (WB Stream, Telemost, DION, Bitrix; VK creators), built from upstream's source: a joiner is an outbound of the proxy tunnelled through a video call, a creator the call's free end. `proxy-ctl wl` gives the links and logins |
| SSH tunnel | `sshProxy`: Windows' own OpenSSH as a SOCKS listener (`ssh -D`) for other programs, and, with `asOutbound`, an outbound of the proxy (sing-box's SSH client) |
| TUN | sing-box's TUN (wintun), `proxy-ctl proxy tun on` — **see the caveats** |
| The app | **Proxy Suite** in the Start Menu, and a tray icon from sign-in: the proxy, DPI bypass and Telegram proxy at a glance and a click; outbounds, subscriptions and the routing mode; zapret's presets and sites; tg-ws-proxy's links; the logs; **every option** in its JSON editor, checked by the service before it takes it; the system proxy |
| The app | **Proxy Suite** in the Start Menu, and a tray icon from sign-in: the proxy, DPI bypass and Telegram proxy at a glance and a click; outbounds, subscriptions and the routing mode; zapret's presets and sites; tg-ws-proxy's links; whitelist-bypass's joiners and creators (links, logins); the logs; **every option** in its JSON editor, checked by the service before it takes it; the system proxy |
Not in this release, still to come: AmneziaWG as a system-wide VPN (its driver), Tor's onion service,
the kill switch, server inbounds, the XRay-only backend, autoProxy, zapret2's extended
@@ -56,7 +56,8 @@ Needs 64-bit Windows 10 (1903 or later) or 11.
| WARP | a device registered live with Cloudflare by the service, its profile rendered as a sing-box endpoint and accepted; traffic through it not (this test machine blocks outgoing UDP) |
| zapret's hostlist rules | every preset with sample rules, checked by `winws.exe --dry-run` (a preset without the profile a rule copies is refused, as upstream refuses it) |
| The app | every page against the service running on Linux, in a window on a virtual display (Xvfb, Mesa's software Vulkan), clicked and typed into by a script, screenshots looked at, and the service's configuration checked after each change (`tools/gui-shot.sh`) |
| The app's Windows build | built by the release workflow; its shaders by Microsoft's own `fxc.exe` (under Wine) with GPUI's own arguments; under Wine it starts and gets as far as drawing text |
| The setup program | under Wine (`tools/wine-setup-test.sh`): a silent install puts every file of the release into Program Files and the entry into Settings → Apps, the service runs and answers; the same setup again over the running install upgrades it; the entry's uninstall removes the service, the files and the entry. Its pages (and the Russian ones) not looked at |
| The app's Windows build | built by the release workflow; its shaders by Microsoft's own `fxc.exe` (under Wine) with GPUI's own arguments; its icon and manifest in its resources, no C runtime DLL among its imports; under Wine it starts and gets as far as drawing text |
**Not verified: anything that needs real Windows.** Traffic through sing-box on Windows (Wine
lacks an API it needs), the TUN adapter, WinDivert actually rewriting packets, the Windows
@@ -66,16 +67,27 @@ there), its tray icon, the system proxy and the Start Menu entry.
## Install
1. Unzip `ProxySuite-<version>-windows-x64.zip` anywhere.
2. Run `install.cmd` (it asks for administrator rights). It copies the program to
`C:\Program Files\ProxySuite`, registers the **ProxySuite** service (starts at boot), adds
`proxy-ctl` to PATH, starts it, and opens the app; the app starts at every sign-in, in the
tray (its shield is green while things work, amber when one failed, grey when all is off).
1. Download `ProxySuite-<version>-windows-x64-setup.exe` and run it. It asks for
administrator rights; SmartScreen may warn of an unknown publisher (the programs are not
signed yet): **More info** → **Run anyway**.
2. It installs everything into `C:\Program Files\ProxySuite`, registers the **ProxySuite**
service (starts at boot), adds `proxy-ctl` to PATH, starts it, and opens the app; the app
starts at every sign-in, in the tray (its shield is green while things work, amber when one
failed, grey when all is off). One option, unchecked: Windows' **OpenSSH Client**, for the
SSH tunnel only, where it was removed from Windows (Windows 10 1809 and later have it).
3. Open **Proxy Suite** from the Start Menu or the tray, or in a **new** terminal:
`proxy-ctl status`.
To upgrade, unzip the new release and run its `install.cmd`. To remove, run `uninstall.cmd`;
the configuration and state stay in `%ProgramData%\ProxySuite` until you delete it.
Nothing has to be installed first: the C runtime is linked into the programs, and WinDivert,
wintun, Python, Tor and the rest come with it, as components. For a silent install:
`ProxySuite-<version>-windows-x64-setup.exe /S`.
To upgrade, run the new setup: the settings stay. To remove: **Settings → Apps → Proxy Suite →
Uninstall** (it runs `uninstall.cmd` in that folder); the configuration and state stay in
`%ProgramData%\ProxySuite` until you delete it.
Without the setup program: unzip `ProxySuite-<version>-windows-x64.zip` anywhere and run
`install.cmd` (it asks for administrator rights): the same install, from the same files.
Windows Defender and other antivirus software may flag WinDivert (zapret's driver): it is a
packet-filtering driver, which is what it is for. Remove other DPI-bypass tools first:
@@ -179,8 +191,9 @@ On Linux with Nix: `nix develop` here (this directory has its own `flake.nix`),
```sh
cargo test # everything but the app; sing-box and xray from the shell
python3 -I tools/parity/links.py # link parsing against upstream's Python
tools/package.sh # the release zip, in dist/
tools/package.sh # the setup program and the zip, in dist/
nix shell nixpkgs#wineWow64Packages.stable -c tools/winws-dry-run.sh dist/ProxySuite-*/components
nix shell nixpkgs#wineWow64Packages.stable -c tools/wine-setup-test.sh dist/ProxySuite-*-setup.exe dist/ProxySuite-*-x64
```
The app on Linux, against the service on Linux:
@@ -195,10 +208,12 @@ Its Windows build compiles GPUI's shaders with Microsoft's `fxc.exe` under Wine
(`tools/fxc-wine.sh`, fetched from the Windows SDK and pinned by hash; it stays on the build
machine), through a small patch to GPUI's Windows backend (`vendor/gpui-pre-windows`).
The Windows programs are cross-compiled with `cargo xwin` (MSVC target), with the toolchain
in `rust-toolchain.toml`. Design notes: [`DESIGN.md`](DESIGN.md).
The Windows programs are cross-compiled with `cargo xwin` (MSVC target, the C runtime linked
in: `.cargo/config.toml`), with the toolchain in `rust-toolchain.toml`. The setup program is
NSIS's (`tools/installer.nsi`, `makensis` from the shell): it unpacks the release and runs its
`proxy-suite-service.exe install`, as `install.cmd` does. Design notes: [`DESIGN.md`](DESIGN.md).
Releases are built by Gitea Actions (`.gitea/workflows/windows-release.yml`): bump `version`
in `Cargo.toml`, add `release-notes/<version>.md`, push a tag `windows-v<version>`. The
workflow tests, packages and publishes the zip and its `.sha256` with the `RELEASE_TOKEN`
workflow tests, packages and publishes the setup program and the zip, each with its `.sha256`, with the `RELEASE_TOKEN`
secret (a token with `write:repository`). Run by hand, it only builds.