Archive: Tick Boxes & Dynamic Custom Pages?


Tick Boxes & Dynamic Custom Pages?
Hi, I'm trying to create a custom page for nsis that will pick up any files in a specified folder with a specific extention, be it *.u, *.upk or similar.

I'm trying to figure out of there is any possible way to create a custom page that displays the files in a list with a check box on them, such that the files selected will be run through a function?


Here's one way to do it:

1) Get the file list (various ways to do this, possibly with FindFirst etc?)
2) Modify the list to only show extensions (can be done easily with StrLen/StrCmp/StrCpy)
3) Sort the list (various ways, there's sort.exe but there's prolly also some macro for this somewhere)
4) remove duplicates from the list (StrLen/StrCmp/StrCpy loops again)
5) nsDialogs to create the custom page.

Chances are there are more direct ways to go about this, but this is one way.