BitOver
24th November 2003 21:51 UTC
Uninstaller help need
Hi,
I've developed an installer for one of my friends that contain 2 components. The installer is working fine but I have problems with uninstaller. I need help to make the installer to allow users to uninstall only one or both components.
I've tried to do this with Section/SubSection but it seems that this approch is working only for installer.
How can I do the uninstaller ?
Thanks,
Gabi:confused:
Joost Verburg
24th November 2003 21:53 UTC
If you are using the latest version (NSIS 2 beta 4), add an uninstaller component pages and create uninstaller sections (name should start with un.).
kichik
24th November 2003 21:55 UTC
In NSIS 2.0 b4 you can use Section/SectionEnd for the uninstaller too. Simply prefix the section name with `un.' to let NSIS know you want it to be an uninstaller section.
BitOver
24th November 2003 22:40 UTC
Thanks for the answer.
Can you give me an example ?
I've tryied :
Section unSection
...
SectionEnd
Section unSection1
SectionEnd
But this is executed during the install time.
I'm sorry, I've just started to use NSIS.
Thanks a lot for your help
Gabi
Anders
24th November 2003 22:43 UTC
try
Section un.Section
...
SectionEnd
notice the '.'
BitOver
24th November 2003 22:52 UTC
Thanks Anders.
I've done that change but now I do not know how to create and display the uninstaller page with 2 check boxes.
A seample will help me a lot.
Thanks,
Gabi
Joost Verburg
25th November 2003 15:40 UTC
Add an uninstaller components page (using a Page command or Modern UI macro).