When building my installer, I can let the user choose which sections to install by calling
!insertmacro MUI_PAGE_COMPONENTS
How can I provide similar functionality in the uninstaller?
I know how to make the sections themselves (thanks to the answers for this question). I just don't know how to let the user choose which of these sections to uninstall.
A block of commands "executed in order by the resulting installer." "If [Attribute] ComponentText is set, the user will have the option of disabling/enabling each visible section. If a section's name is 'Uninstall' or is prefixed with 'un. ', it's an uninstaller section."
NSIS is a tool used to create installers/uninstallers but some malware has also used the name to try to seem legitimate. "NSIS Uninstall Information" is not a folder that most NSIS installers will create but that does not mean that it is impossible for a genuine software installation to use this directory.
nsi file by simply right-clicking on it in Explorer and selecting 'compile'. If you want to use MakeNSIS on the command line, the syntax of makensis is: makensis [ option | script.
You do the same things as in the installer, you just need the correct uninstaller prefix:
MUI_UNPAGE_COMPONENTS
and
Section /o un.optional
SectionEnd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With