Commit cb09afb
committed
packaging/windows: fix un.SecRemoveUserData also showing on install Components page
NSIS dispatches install-vs-uninstall sections based on the `un.`
prefix on the DISPLAY NAME (first arg to Section), not on the
section ID. The `Section /o "Remove user data..." un.SecRemoveUserData`
declaration put the prefix on the ID and left the name bare, so NSIS
treated it as an installer section — the checkbox appeared on the
install-time Components page where it had no business being.
Worse, if a user had ticked it during install, the section body
(SetShellVarContext current + RMDir /r "$APPDATA\aMule") would have
wiped user data while installing.
Fix: move the `un.` prefix onto the display name. NSIS strips it
from the rendered label, so the user still sees "Remove user data..."
in the uninstaller's Components page, but the section is correctly
classified as uninstaller-only.
The MUI_DESCRIPTION_TEXT ${un.SecRemoveUserData} reference and the
section's ID stay the same — only the first arg to Section moves.1 parent 6cf207a commit cb09afb
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
338 | 343 | | |
339 | 344 | | |
340 | 345 | | |
| |||
0 commit comments