Archive: Create the component page based on an inifile on User PC?


Create the component page based on an inifile on User PC?
First!Thanks for your nice work!NSIS help me a lot!
:) en!I use the NSIS from 200409,And this is my first question!Because I can find all I want in the Forum before.
But now!I can't.
In my app_Inst.exe, I want install the third part plugin.and I want let the plugin info display in the component page.So far,that seems a easy question.But the last step is: all the information is contained in a inifile,and the inifile localed at the same dir of app_inst.exe,when the exe started, I find the inifile,load the information,and then gen the component page to the user,that the user can select them!and the plugin_inst.exe also at the same dir!the last thing is ExectWait...
En~that's all I want!~
Is there any way to solve it?
Thanks!
waiting......!:)


You can't dynamically add/delete sections, but you can hide them by setting their text to "" using SectionSetText. This won't stop the Section being executed though... You'd have to jump over the code inside it using StrCmp or something (if a variable equals something).
See SectionSetText in the NSIS chm manual (under index) for setting.

-Stu


hmm!~Thank u!~seems that there isn't a wonderful solution! the problem is I don't know how many plugins that the app_inst.exe want!So I only find a trick,create a number of blank sections,and use it(unhiding)when I need(the inifile need),so....I set the number is 16!maybe that's enough!God bless!
Thank you!
I will write my acknowledgement for you in my app_license!
:)