Old 24th September 2005, 01:12   #1
thorinside
Junior Member
 
Join Date: Sep 2005
Location: Calgary, AB, Canada
Posts: 1
Send a message via AIM to thorinside Send a message via Yahoo to thorinside
un.installers...

Hi All,

I'm getting some more experience with NSIS and I have a need to easily create an uninstaller that corresponds closely to an installer and what the user chose to install. I've read through many of the forum posts, documentation, and I haven't answered my own simple question:

If I create an uninstaller section that has the same name as an installer section say 'blorg', although prefixed with the requisite 'un.', and the user chooses 'blorg' to be installed in the components list, will 'un.blorg' be included in the uninstaller? Or do ALL un. sections get put into the uninstaller?

If it isn't already in the features list, I think it would be a wonderfully simplifying feature to write out an uninstaller that corresponds to the installed sections of the same name (without the 'un.' prefix').

Is this what happens already?

Thanks.
thorinside is offline   Reply With Quote
Old 24th September 2005, 02:59   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Quote:
If I create an uninstaller section that has the same name as an installer section say 'blorg', although prefixed with the requisite 'un.', and the user chooses 'blorg' to be installed in the components list, will 'un.blorg' be included in the uninstaller? Or do ALL un. sections get put into the uninstaller?
Every section is executed if you don't supply a components page for the uninstaller. This page is where the user chooses which sections to uninstall.

The installer needs to tell the uninstaller which sections it installed, because an uninstall program is a separated program from the install program. You can use registry, ini files, and etc. to supply that information.

Quote:
If it isn't already in the features list, I think it would be a wonderfully simplifying feature to write out an uninstaller that corresponds to the installed sections of the same name (without the 'un.' prefix').
This usually isn't good because some people might need to customize more the uninstallers, and so, this would make NSIS bigger... and I don't like when that happens...

You could do this in compile-time by creating another NSIS script that writes instructions for both installer and uninstaller.

My Wiki Pages

Working now on:
New projects. (language: any)

Last edited by deguix; 24th September 2005 at 03:18.
deguix is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump