Skip to content

fix(windows-installer): require elevation for installer shortcuts - #255

Merged
xiami762 merged 1 commit into
devfrom
fix/windows-shortcut-uac-elevation
May 12, 2026
Merged

xiami762 merged 1 commit into
devfrom
fix/windows-shortcut-uac-elevation

Conversation

@xiami762

@xiami762 xiami762 commented May 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • route installer-created desktop and Start menu launch shortcuts through an elevated PowerShell helper
  • keep %USERPROFILE%\.local\bin\flocks.cmd start as the actual app entrypoint while making shortcut launches trigger UAC
  • add packaging tests that lock the shortcut target and elevated launcher behavior

Route installer-created desktop and Start menu launchers through an elevated PowerShell helper so Windows prompts for UAC before starting Flocks. This keeps the shared flocks.cmd wrapper as the real entrypoint while preventing updater failures caused by insufficient permissions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xiami762
xiami762 merged commit f48d769 into dev May 12, 2026
1 check passed
duguwanglong pushed a commit to DearEmma/flocks that referenced this pull request May 18, 2026
…cut-uac-elevation

fix(windows-installer): require elevation for installer shortcuts
@duguwanglong
duguwanglong deleted the fix/windows-shortcut-uac-elevation branch July 22, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants