Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 19th July 2012, 08:31   #1
hey_monkey
Junior Member
 
Join Date: Jul 2012
Posts: 1
Installation from ini file

Hi guys,

I have a ini file that looks like this:

[ComponentName1]
PathOfTheExecutableToRun1 = c:\setup1.exe
PathOfTheExecutableToRun2 = c:\setup2.exe
[ComponentName2]
PathOfTheExecutableToRun3 = c:\setup3.exe
PathOfTheExecutableToRun4 = c:\setup4.exe

I would like to know if it is possible to create a script that shows the [ComponentNameX] as component and run each Executable from the section if the component is choosed.

Thanks for your help.
hey_monkey is offline   Reply With Quote
Old 19th July 2012, 09:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Sure it is possible but particularly easy. The number of sections are defined at compile time so either you need to add a lot and only show some or you should think about making your own components page. Also ReadINIStr isn't much good until you know all the section names in your INI file - it would be better to use [Section #] and you can then enumerate through them using a loop until the error flag is set.

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