Old 27th February 2007, 11:13   #1
dilbertz
Junior Member
 
Join Date: Feb 2007
Posts: 5
Components Control

Greetings
This is a really simple question since I'm a complete beginner.
I have two sections, both selectable.
In the Uninstaller section I'd like to know which sections were selected, in order to uninstall the appropriate parts for each selected section.
I tried to use global variable (getting diffrent value in each section), or using SectionGetFlags and it always uninstalled both sections' parts, regardless of my choice.
How can I do it.
Thanking you all.
Dilbertz
dilbertz is offline   Reply With Quote
Old 27th February 2007, 14:19   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Already discussed several times, here is a recent similar thread,

http://forums.winamp.com/showthread.php?threadid=245647

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 27th February 2007, 16:36   #3
dilbertz
Junior Member
 
Join Date: Feb 2007
Posts: 5
Hi
Thanks for the quick answer.
The registry trick works of course.
Found it few hours ago but it still seems weird that there is no other way to connect between installer sections and uninstall section.
By the same token you can open a file in each installer section and check its existence in the uninstall section.
This is clumsy as well.
thanks again.
Dilbertz
dilbertz is offline   Reply With Quote
Old 27th February 2007, 16:48   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
You control the script, you control the installer, the ways you may do it, are endless
For instance, you may combine the registry thing with a components uninstall page which should read the registry and turns installed sections as checked ready for uninstall.
Doing that, you're offering the ability to uninstall parts of your software or uninstall completely.
For my opinion these are flexible and pro capabilities offered by NSIS.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine 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