feat(agent): the Windows setup installs Beanstalk, or runs it portable, as the launcher's does #26
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!26
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/windows-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why:
beanstalk-agent-…-windows-x64-setup.exewas the portable program under another name. It ran from wherever it was downloaded (usually Downloads), with no Start menu entry and no way to uninstall it. The Longshot Launcher's setup installs itself, and this makes Beanstalk's do the same.What changed (adapted from the launcher's
Core/Installer.cs,App/WindowsInstall.csandApp/SetupWindows.cs).exe, with noportablefile beside it, not the installed copy, and no Beanstalk installed yet.%LOCALAPPDATA%\Programs\Beanstalk\beanstalk-agent.exe(per user, no administrator);--installdoes the same without the dialog.portablebeside the program. It then updates from the portable zip, like the zip's own program. Its data stays in%LOCALAPPDATA%\Beanstalk, because the sign-in belongs to the PC.--uninstall): a confirm window removes the shortcut, the entry and the program. The program is deleted after it closes, if it was running..nup, the dump's folders, a Longshot checkout of the tester's own, and a data folder outside the home all stay, and the window names that folder.beanstalk-runneraccount exists, a ticked box removes it (one UAC prompt).package.shheader,agent/README.md(Installing on Windows) anddocs/deploy.md(Downloads).Testing
test_agent_core.py: 1606 checks pass, 41 of them new installer checks with a fake registry, fake shortcuts and temp folders. They cover:win-x64build both succeed..lnkwrites, the dialogs, starting the installed copy, deleting after exit,--uninstallfrom Apps & features, and removing the runner account. Someone with Windows should run a nightly setup once: install, start it from the Start menu, then uninstall.Risks: a Windows tester already running the setup file from Downloads sees the dialog once, the first time this version starts (their copy has no
portablefile and isn't installed). Choosing Run portable keeps everything as it was, and Install moves the app into Programs; their sign-in and data stay where they are.HumanBean referenced this pull request2026-11-16 06:47:47 +00:00