Skip to content
⌘ NSIS Forum Archive

To start from a specified folder by Browse button in Directory Page

32 posts

Afrow UK#
Animaether, the point is this needs to be done when you Browse. As soon as you enter a non existent path on the directory page the browse dialog always starts at the root.

Edit:
i.e. if you have $PROGRAMFILES\MyApp as InstallDir or upon directory selection or manual entry Browse should open initially to $PROGRAMFILES if MyApp does not exist.

Stu
Animaether#
The only case in which things wouldn't work as desired is when the user enters a non-existing path on the directory page itself; the directory browser doesn't let you pick non-existing paths.

So, again, it'd be a lot easier to handle with a custom page - as in that case the directory browser doesn't grab the data from the entry field as authoritative and you can manipulate the path for the directory browser before opening it.

I'm not saying that the feature request isn't valid - just suggesting ways in which one can do the desired with the tools already at one's disposal.