The installer refused folders whose parent is user-owned (Desktop, Documents) because a user could swap
the whole install folder and get the elevated/audiodg-run parts replaced. Instead of refusing, the parts
that run with admin rights or inside audiodg now live in {commonpf}\VoiceChanger, which only admins can
change; the chosen folder keeps the app, Python, engine, models and data.
- VoiceChanger.iss: SysDir = {commonpf}\VoiceChanger holds apo\ (VoiceChangerAPO.dll), scripts\mic-apo.ps1
and the uninstaller (UninstallFilesDir). CheckParent removed. Upgrade detection also matches the previous
install dir from the uninstall registry (PrevAppDir) since uninstall\ is no longer inside the app folder.
Stop the audio service when either the new or the v1.0.1-layout APO exists. Ask before installing into
a OneDrive-synced folder.
- secure-dir.ps1: drop CheckParent; Prepare takes -Upgrade.
- mic-apo.ps1: -From <previous app folder> migrates a v1.0.1 apo\ or 21b4278 config\ backup (validated as
before) into the Program Files apo\, removing the emptied old apo\.
- app: admin_root() finds Program Files\VoiceChanger (falls back to the app folder for the zip layout);
hooked-mic list, mic-apo log and the reconnect button use it.
Windows 11 VM (Inno 6.7.4 build, AppVersion 1.0.2): v1.0.1 at C:\VoiceChanger -> upgrade: backup moved
byte-equal, APO re-pointed to Program Files, old apo\ scripts\mic-apo.ps1 uninstall\ gone; fresh install to
C:\Users\ci\Desktop\VoiceChanger (owner WIN-CI\ci) with full engine download: exit 0, audiodg loads
C:\Program Files\VoiceChanger\apo\VoiceChangerAPO.dll, 440 Hz APO test + Communications stream PASS;
basic-user token can rename the Desktop folder but every Program Files write/rename is ERROR_ACCESS_DENIED;
reinstall over the same folder keeps user files; uninstall restores FxProperties (only the endpoint
timestamp properties differ, same as v1.0.1) and removes both folders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
consent-recorder: operators (ADMIN_DISCORD_IDS) create an app key on the
site; the app calls GET/POST /api/guilds with it to turn servers on/off.
Turned-off servers are left immediately. recordingNow() now checks the
user picked that server, so someone who only chose server A is not shown
as recorded while sitting in a B channel the bot records for others.
voice-changer: new "녹음 서버" dialog (record_servers.py), network in a
worker thread, key saved in config/record-servers.json; upgrade cleanup
list knows the new file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
secure-dir.ps1 Prepare used to delete every root file (and whole scripts/app/launcher/uninstall
dirs) when upgrading. It now removes only the named files of earlier distributions (plus the
uninstall logs, which run elevated) and empty dirs; any other file stays and is only re-owned
by Administrators with inherited permissions.
Windows 11 VM: 21b4278 install + root sample.wav, models\keep.wav, scripts\note.txt ->
upgrade -> SHA256 unchanged for all three (also after silent uninstall).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>