Archive: ListBox


ListBox
Hi there,
I want to add a custom dialog to my installer, where a user chooses one of several configuration files during install. I think, the listbox example (http://nsis.sourceforge.net/ListBox_example) will be great for this. There are some modifications I would like to do:
1.) Fill the listbox with the file names of all *.id-files in the installer path.
2.) Restrict the FileRequest to only show *.id files.

After one file has been selected, this file (and not the others) should be copied during the installation process. If have looked for ways to do this, but so far, I haven't been successfull.

Thanks for help,
Wolfgang


use FindFirst/FindNext to detect the .id files, then write them into the .ini file of your custom page (first.id|second.id|third.id) - or use the equivalent of in nsDialogs (addstring). you can then query the user's selection and do anything with the result.


Ah, ok! Thank you!