Archive: Menu type in uninstaller


Menu type in uninstaller
Is there any possible way to get a menu displayed in the uninstaller so the user can pick and choose which components to uninstall that they've installed?

Thanx for any info


Use InstallOptions.

-Hendri.


Hi,

May I know where about in InstallOptions does it allow us to run a menu type uninstall? Appreciate if you could lead me to the example.

Thanks.:)


Smile2Me was meaning that you could use InstallOptions to create a menu yourself. Check out Contrib\InstallOptions\test.nsi and Examples\Modern UI\InstallOptions.nsi in the NSIS directory.


Oh yeah, I do have those examples, I am able to create new pages.
But how do I make these new pages appear as uninstall pages?

How do I have sections that are dedicated to uninstall purpose?

There seem now to me that I am only able to have one section for uninstalling (which is the Section "Uninstall").

Thanks.:)


Prefix your functions and sections with un. (include the period)


My apologies, but I dont understand what you mean by "include the period".
Could you please elaborate?
Thanks. :D

Originally posted by Sunjammer
Prefix your functions and sections with un. (include the period)

Taken from the documentation:-

Function names beginning with "un." are functions that will be generated in the Uninstaller. Hence, normal install Sections and functions cannot call uninstall functions, and the Uninstall Section and uninstall functions cannot call normal functions.

edit: I may be wrong about prefixing sections with un. but it's certainly correct with regard to functions.


A build-in component page in the uninstaller will probably be available in NSIS 2 beta 2.


With the ability to use more than the single uninstall section. Currently you can't add section to the uninstaller.


Maybe some suggestions (propably already suggested before, then it's a summary):[list=1][*]Repair install[*]Remove/reinstall some components[*]Reinstall program (using the components selected for installing)[*]Uninstall complete program[*]Prefix uninstaller sections with 'un.'[*]Prefix repair sections with 'rp.'[/list=1]


As usual, NSIS will not touch any of these. NSIS will let the user create those if he want and not bloat every simple installer with tons of things the user doesn't need. There will, of course, be an example of repair, reinstall and uninstall page using IO, skipping the components page of the uninstaller and that is required to accomplish the above.


Whoah, talk about resuscitating an old post. :)

But, this is certainly good news that it's in the works for beta 2.

Since the only way I can have a choice component uninstallation now is to use a whole schwackload of Yes/No questions at uninstall.