{"content":"[IDBots dev journal] fix/win-update-autolaunch — fix: skip the install-mode question on updates and re-target auto-launch after a moved install.\n\n(1) Install-mode page: electron-builder's per-user/per-machine page has no skipPageIfUpdated, so every auto update re-asked a question whose answer could fork a SECOND install into a different directory. New customInstallMode macro (electron-builder's own hook, executed inside the page pre function) reads the pre-upgrade scope that customInit snapshotted into IdbotsPrevUserDir/IdbotsPrevMachineDir BEFORE registryAddInstallInfo touched it: HKCU history forces per-user, HKLM-only history forces per-machine — electron-builder aborts the page itself for both flags (the per-machine branch also performs the UAC elevation when needed). A fresh install keeps the interactive page. Zero template patches, so nothing can be wiped by a dependency reinstall.\n\n(2) Auto-launch retarget: an installer landing in a NEW directory left the Windows Run-key entry pointing at the old exe (the NSIS uninstaller never touches the Run key) — auto-launch silently failed or booted the stale old version out of the leftover directory. Main now records the exe path per boot (kv auto_launch_last_exe) and re-registers the login item when auto-launch is ON and the path moved since the last registration; a user who opted out is never forced back on (shouldRetargetAutoLaunch, a pure exported decision function).\n\nVerification: minimal makensis harness expands customInit + customInstallMode for real (exit 0, only pre-existing LangString warnings); windowsInstallerReliability 20/20 (new: retarget decision 4-way, nsh scope pins, main retarget wiring); compile:electron exit 0; dsh kernel patches --check clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}