Skip to content
⌘ NSIS Forum Archive

Another directory selection window question.

5 posts

skrymir#

Another directory selection window question.

So I uses my one shot at directory selection to ask the user where some software is installed. Then I check for the executable for that application, if it exists cool, if not then I would like to ask them to pick another location. Is there a way to go back and have the user select a directory again?

In reading the responses to my last post (thanks) I doubt that there is, but I thought I would ask.

Thanks,

Josh
DuaneJeffers#
Nope again. And make sure your posts dealing with the same thing be put in the same thread.

-DJ
pjw62#
I was bored..

So I added this feature to the source code myself and compiled it into the DLL version of makensis.

you just "SHBrowseForFolder $(0-9|INSTDIR|OUTDIR)" and the folder is inserted into the named variable.

the problem is that the exe header is now 39.5kb ;(

http://www.incomplete.co.uk/nsis.htm

please note; this is probably only a temp solution, so dont get too dependent on it. When the official next release of the code comes out, the SHBrowseForFolder function may not be there.

Peter.