Archive: Custom Page Question


Custom Page Question
Ok, I want to make a custom page that allows the user to select a specific file to copy from a directory on the CD to the installation directory.

Say there were a bunch of files in D:\extras\, How would I create a custom page that listed each file and placed a checkbox (or radio button) next to each one. Then the user would select the specific file (they can only chose one) and hit next. After hitting next, the file the picked will be copied to the installation directory.

Could anyone tell me how to do this?


It is probably not a good idea, since you custom page's dimensions will constrain you from showing all the files (if there are many of them). You can use InstallOptionsEx to create a custom page that has a DropList control showing the files in a certain directory.
CF


I have seen NSIS installers that will enable a scroll bar when there are too many options to display at once. Also, would there be a way to do this with just stock NSIS functions? I would really like to try and avoid 3rd-party plugins. And it looks like the InstallOptionsEx project has been abandoned entirely. I do not want to be dependant upon a plugin that is no longer actively being worked on.


You can try EmbeddedLists plugin.

-Stu