Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Running installation sections (http://forums.winamp.com/showthread.php?t=300695)

RBIBBY 5th December 2008 17:27

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

{_trueparuex^} 5th December 2008 18:07

Simples way I can think of is to use SelectSection and UnselectSection macros from Sections.nsh

PaR

Takhir 6th December 2008 09:18

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.

Animaether 6th December 2008 10:16

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.


All times are GMT. The time now is 04:43.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.