Windows server: take over a pre-existing data folder, lock other install folders
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Any user may create a folder in ProgramData, so setup no longer trusts an existing %ProgramData%\OpenChronology as it finds it. It makes the folder the administrators' (takeown), replaces its access list in one step with a protected one (no inherited or leftover entries), and then uses only items an administrator or the system owns. Anything else, or a link or junction, stops setup with a message; -TrustExistingData takes over an earlier installation's files once an administrator has checked them. Every file setup manages has its access list replaced on each run rather than having grants added, so no other account's entries survive. initdb's password file is now written in the locked data folder instead of the temporary folder, which other accounts can write in when setup runs as SYSTEM. Installed outside Program Files, the program folder gets Program Files' access: administrators and the system change it, users and the service accounts read and run it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/574eef6210f58a30f5bd774e3193c1a1f7fc7fa8