- 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>
- installer: lock the install folder (admins/SYSTEM full, Users read) and grant Users modify only on
data dirs (models/training/datasets/config/cache/env/engine/tools); download the engine as the
original (non-elevated) user; refuse non-empty folders; uninstall deletes only app-managed dirs
- mic-apo.ps1: backup/list/log moved to admin-only apo\; register SFX for DEFAULT, COMMUNICATIONS,
SPEECH and MEDIA when the endpoint has no mode list; admin TEMP for Add-Type; run log + trap
- app: '마이크 다시 연결' launches one elevated PowerShell via ShellExecuteExW(runas) with
double-quoted -File args and waits for its exit code; shows apo\mic-apo.log on failure
- tests: reconnect argument splitting (Korean/space/quote/drive root)
Verified on the Windows 11 VM: basic-user token gets ERROR_ACCESS_DENIED on scripts/apo/exe/
uninstall/app and write access only on data dirs; Communications-category capture receives the
converted signal (440 Hz); reconnect exits 0 from a Korean+space install path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- apo/: VoiceChangerAPO.dll (SFX APO on the real mic, built with mingw). When the app converts,
the mic's own stream carries the converted voice; otherwise it passes the real voice through.
Shared-memory protocol in vccore.h, Python side app/mic_bridge.py
- scripts/mic-apo.ps1: register/unregister on every capture endpoint with admin value rights only
(no ACL changes unless FxProperties is missing), originals backed up and restored
- app: mic is the conversion target (WASAPI names), no output device, '마이크 다시 연결' button,
44.1k<->48k streaming resample, caches/temp redirected into <install>/cache
- installer/VoiceChanger.iss (Inno Setup): choose install folder, register APO, download engine
into that folder, uninstall restores mic settings and asks before deleting models
- install.ps1: uv python --no-bin --no-registry, temp/caches inside the folder, uv cache clean
- tests: C core compiled with gcc against the Python bridge; converter pump 44.1k round trip
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>