Old 5th December 2008, 17:27   #1
RBIBBY
Junior Member
 
Join Date: Oct 2008
Posts: 8
Running installation sections

Hello,

I have a rather complicated installation with many sections. Therefore I have written my own selection dialogue using nsDialogs.

Once I know which choices the user has made I need to run the appropriate installation sections.

How do I do that?

/Richard
RBIBBY is offline   Reply With Quote
Old 5th December 2008, 18:07   #2
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
Simples way I can think of is to use SelectSection and UnselectSection macros from Sections.nsh

PaR
{_trueparuex^} is offline   Reply With Quote
Old 6th December 2008, 09:18   #3
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Sections in NSIS are 'reflections' of Components page selections. NSIS decides what sections to execute basing on current selections. If you want use some other logic from customer choices, IMHO better way is to use functions. Just call them from some mandatory (may be hidden) section. Another way is {_trueparuex^} described check boxes manupulation on the Components page, but customer can change selections on the Components page.
Takhir is offline   Reply With Quote
Old 6th December 2008, 10:16   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Quote:
Originally posted by Takhir
Another way is {_trueparuex^} described check boxes manupulation on the Components page, but customer can change selections on the Components page.
Not if you never show a Components page:
Quote:
Originally posted by RBIBBY
I have a rather complicated installation with many sections. Therefore I have written my own selection dialogue using nsDialogs.
Animaether 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