feat(windows): ship an installer (.exe) instead of the portable zip
Windows is shipped only as ServerBox_v1.0.N_windows_amd64.zip. A setup .exe would install the app, add a Start menu entry and an uninstaller, and let winget treat it as an ordinary installer.
What is there now
fl_build(flutterBuildWin) zipsbuild\windows\x64\runner\Release. The CDN upload (fl_build -s) sends whatever file that produces.- The zip bundles no VC++ runtime (
msvcp140.dll,vcruntime140.dll,vcruntime140_1.dll), so the app relies on the redistributable already being installed. - In-app update (fl_lib
AppUpdate._getGitHubUrl) on Windows only matches a.zipcontainingwindows, and opens it in the browser. A release without such an asset is silent by design: no notice, no error (update.dart). - winget: the first submission (microsoft/winget-pkgs#443244, 1.0.1617) is
InstallerType: zip+NestedInstallerType: portable, still waiting on manual review. Nothing is published there yet. - Docs (
installation.mdx,platforms/desktop.md) describe a portable zip. - App data lives in the user's app-data directory, not beside the exe, so moving from the zip to an installer keeps it.
Proposal
- Inno Setup, preinstalled on
windows-latest(InnoSetup 6.7.1 on both the 2022 and 2025 images). - A per-user install to
%LOCALAPPDATA%\Programs\ServerBox(no admin), with a fixedAppIdso a new version installs over the old, Start menu and optional desktop shortcuts, and closing a running instance before replacing files. - Bundle the VC++ runtime DLLs next to the exe (app-local), so a machine without the redistributable can start it.
- Output
ServerBox_v1.0.N_windows_amd64.exe, included inSHA256SUMS/MD5SUMS.
Changes
packages/fl_build: build the installer after the release build.packages/fl_lib: on Windows, prefer the.exeasset and fall back to.zip.- This repo: the
.issscript,build.yml(upload the exe, update the checksums), winget submission (installer URL; komac detects Inno), and the docs.
Transition
Releases up to v1.0.1719 only look for the .zip, and stay silent without it. Keep publishing the zip next to the exe for one or two releases (marked TODO), then drop it. Until then, the winget submission can switch to the exe, since nothing has been published there yet.
Not in scope The exe stays unsigned, so SmartScreen still shows "unknown publisher", as it does now for the exe inside the zip (#907 was a Defender false positive on the download). Fixing that needs a code-signing certificate or Azure Trusted Signing, which is a separate decision.
Issue triage
Feasibility:needs-clarification | Risk:medium
Related:issues #907;CR winget-pkgs#443244
Related code:
packages/fl_buildpackages/fl_lib· AppUpdate._getGitHubUrlinstallation.mdxplatforms/desktop.mdbuild.yml*.iss
Information needed to reproduce:
- Which Windows versions and architectures must the installer support?
- Should the VC++ runtime DLLs be bundled from a specific toolchain version, and how will their licensing/provenance be verified?
- Should the installer support silent install/uninstall switches and preserve user data during upgrades?
- What exact release window and criteria will determine when the legacy ZIP is dropped?
- Is the installer expected to be included in CDN uploads as well as GitHub releases, and should the ZIP remain available there during transition?
Suggested labels(not applied automatically):enhancement, windows, installer, release
Suggested owners(not applied automatically):packages/fl_build maintainers, packages/fl_lib maintainers, release/CI maintainers, documentation maintainers