Archive: Two directory Pages


Two directory Pages
Hi Everyone:

So here is what i want to do:

I want to have 2 different directory pages. Depending on the options selected on the component pages, it will show one page directory or another. If the user select all the options from the components page, i want to display the default MUI_DIRECTORY_PAGE but if the user unselect one of the options i have to show another one with a different text so where i can read the path for the directory he is providing me and so i can put the files there.


thanks.


What you could do is use custom pages for both of your directory pages. Then in the show function before each page is displayed, add the commands:

SectionGetFlags $R0 ${SEC04}
StrCmp $R0 0 End

Just make sure you have the End: label at the very end of the function, and if section 4 (in this example) is not selected, the custom page will not be displayed, and the installer will skip to the next page.

Hope this helps.


Info on here on how to skip a non-custom page:
http://forums.winamp.com/showthread....hreadid=216941

-Stu