Skip to content
⌘ NSIS Forum Archive

Get List of Folders in Path

4 posts

Guest#

Get List of Folders in Path

Hello,
I'm dealing with a bit of a dilemma here:
Im creating a script to make an installer for my counter-strike source and half-life 2 maps that i make, and i want to have either a set of radio buttons or a dropdown list or something that allows the end-user to choose which Steam username to install the map for.

Ive seen lots of ways to find information or use information about directories where you already know the name, but i need to get a list of unknown directories to work with.

example:
steam.exe is found in c:\program files\steam
i need to install my map files into c:\program files\steam\steamapps\<username>\counter-strike source\maps\

unfortunatly, <username> could be anything. I think i can work out how to do the custom page stuff to display the radio buttons, but im stuck on how to get a list of unknown directories in a specified path.


Like, if there are 3 Steam users that access the target computer, there will be directories:

c:\program files\steam\steamapps\bobsaccount@gmail.com
c:\program files\steam\steamapps\super_csnewb@aol.com
c:\program files\steam\steamapps\omghax@hotmail.com

and i want to prompt the user to choose one account to install for.

Anyways, i guess this post is getting long enough, i hope ive explained my problem well enough.
Thanks for any help,
AnarkiNet ( http://game-advance.net/ )
Instructor#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Afrow UK#
The finished function from that forum page is on the Wiki at:


-Stu