RBIBBY
5th December 2008 18:27 UTC
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 19:07 UTC
Simples way I can think of is to use SelectSection and UnselectSection macros from Sections.nsh
PaR
Takhir
6th December 2008 10:18 UTC
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 11:16 UTC
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:
Originally posted by RBIBBY
I have a rather complicated installation with many sections. Therefore I have written my own selection dialogue using nsDialogs.