Commit 6a033c4
committed
packaging/windows: route install-time autostart through --configure-autostart
The installer's "Start aMule when I log in" Components-page section
now calls `amule.exe --configure-autostart on` via ExecWait instead
of writing the HKCU Run key directly. Puts the install-time path
and the Preferences → General checkbox through the same
AutostartManager API — OS-specific store details (HKCU Run on
Windows today; macOS LaunchAgent / Linux XDG .desktop on those
targets in the future) live in exactly one place.
Uninstaller's autostart cleanup left as-is: it has a safety check
that only deletes the Run value if it still points inside $INSTDIR,
so a user's hand-set value with a different path survives uninstall.
A blind `--configure-autostart off` would regress that check; not
worth losing for the symmetry.
UAC caveat preserved from the prior direct write: HKCU resolves to
the elevated context's hive — if a non-admin user enters a different
admin's password at UAC, the entry goes to that admin's HKCU
instead of the asker's. Fixing cleanly needs the UAC.dll plugin
which isn't worth pulling in for an opt-in single-machine convenience.1 parent d305939 commit 6a033c4
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
244 | 253 | | |
245 | | - | |
246 | | - | |
| 254 | + | |
247 | 255 | | |
248 | 256 | | |
249 | 257 | | |
| |||
0 commit comments