Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have optional sections in an NSIS UNinstaller?

Tags:

nsis

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.

like image 844
Jason 'Bug' Fenter Avatar asked Feb 01 '12 18:02

Jason 'Bug' Fenter


People also ask

What is a section in NSIS?

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."

What is Nsis uninstall information?

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.

How do you compile NSIS?

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.


1 Answers

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
like image 87
Anders Avatar answered Sep 30 '22 03:09

Anders