Files
voice_copy/voice-changer/scripts
EJClaw c62bd9cf39 voice-changer: lock install folder ownership, migrate old mic backup, refresh comm modes on upgrade
- installer/secure-dir.ps1 (run elevated from tmp):
  CheckParent: refuse folders whose nearest existing parent is not a drive root or owned by
  Administrators/SYSTEM/TrustedInstaller.
  Prepare (before files are copied): owner Administrators + protected DACL (SY/BA full, Users RX),
  verify, abort setup on failure; refuse links pointing outside the folder; on upgrade delete the
  old executable parts (scripts/app/launcher/uninstall/root files) that 21b4278 left user-writable.
  Finish: Users modify only on data dirs; verify every admin-run file is admin-owned and not
  user-writable, otherwise skip APO registration and engine download.
- mic-apo.ps1: migrate config\mic-apo-backup.json to apo\ with value validation (CLSID/mode GUID/
  DWORD only, own CLSID stripped), never record our own APO as the original value, upgrade the
  DEFAULT-only mode list written by 21b4278 to DEFAULT/COMMUNICATIONS/SPEECH/MEDIA, remove the
  old config\mic-apo.json.

Windows 11 VM: user-precreated folder -> owner BA, basic-user WRITE_DAC/WRITE_OWNER/grant/icacls/
write/rename all ERROR_ACCESS_DENIED; user-owned parent refused (CheckParent exit 20);
21b4278 install -> upgrade: backup migrated, modes refreshed, Communications capture 440 Hz,
uninstall restores FxProperties to the pre-install state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:01:36 +09:00
..