Archive: Dynamic InstallOptions Pages


Dynamic InstallOptions Pages
Good Afternoon,

Here is the scenario: the user is presented with an InstallOptions page with a radio button - Option A and Option B. If the user chooses Option A, I want InstallOptionsPageA to be extracted and displayed. Ditto for B.

Sorry to explain it kinda wierd, but I think that's the best way to put it. I'm using MUI, and I have called the macro MUI_INSTALLOPTIONS_EXTRACT three times for all three pages in the myGUIInit function. When the first page is displayed, I have a variable INI_PAGE set to "InstallOptionsPageA" in case of option A, ditto for B. In the next page I have MUI_INSTALLOPTIONS_DISPLAY_RETURN $INI_PAGE. For some reason, neither of these pages are being displayed. I tested the variable with a MessageBox and it is being set correctly. Any ideas?

Thanks in advance,
Joe


Are you sure the variable is set correctly? It should be InstallOptionsPageA.ini and not just InstallOptionsPageA.


I apologize for the type-o. It is "InstallOptionsPageA.ini"


So attach an example script. It's unclear from your description why this happens.


Here is the file. Sorry I can't send you the original... this is for a product the company I work for hasn't released yet. Hopefully there is enough code left for you all to notice what I'm doing wrong.


Aside from a possible endless loop in case non of the radio buttons are selected, I can't see anything wrong. You should use the LogicLib for logical code structures, it'll be simpler.

Try reproducing the problem in a new script that'll contain only the problematic code. If you won't find it while trying, attach it here and I'll have a look.


Wow, this is really embarassing. The problem is now fixed. I had the names of the files in my nsi script mixed up. It was supposed to be QuestionsOptionalA.ini, but instead I put OptionalQuestionsA.ini. Sadly this isn't my first dumb mistake, and it probably won't be my last. Thanks for the quick responses. I also started using LogicLib, and the code is a lot easier to read.

Thanks,
Joe