Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th March 2010, 20:39   #1
lazlot
Junior Member
 
Join Date: Dec 2009
Posts: 12
Question populate sections at runtime from an external file

Is it possible to populate sections from an external file at run time, so that these sections can be changed dynamically "outside" of the compiled installer?

For example, I know the following wont work, but hopefully explains the concept:

PHP Code:
SectionGroup "Group" Sect
!include "sectionslist.txt"
SectionGroupEnd 
And have sectionslist.txt file populate the sections:

PHP Code:
Section /"Option1" Option1
Some stuff
SectionEnd

Section 
/"Option2" Option2
Some other stuff
SectionEnd 
lazlot is offline   Reply With Quote
Old 30th March 2010, 06:11   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
No. !include is a compiletime command, and although it's possible to extract the precompiled script file from an NSIS installer exe, you cannot as far as I know add script to an NSIS installer after it has been compiled.

What you can do is run external executables, or even makensis to compile a script into an installer at runtime.
MSG is online now   Reply With Quote
Old 30th March 2010, 13:47   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Something like this would require an IIS server with NSIS installed to accept an HTTP request and then to respond with a built installation executable. I have seen this done and it is very neat!

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp 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