Page 1 of 1

Select Target Folder Action

Posted: Tue Jan 16, 2007 11:39 am
by owen
Hi,

I am trying to modify the dialog where the user selects an installation directory. What I want to do is add two more user-selected locations which will most likely be on other drives. I want the user to be able to pick the location of these two destinations just like they can select the installation folder. I have three edit controls for the three paths, and three Change buttons to bring up the Browse window.

My problem is that I can't figure out how to get the "Select Target Folder" button action to return into the other edit controls, anytime you create a button with action "Select Target Folder" it will return its result into the initial installation directory edit control.

Would it be possible to do what I just described?? And how would I go about doing it, thanks.

Posted: Tue Jan 16, 2007 2:13 pm
by jimo
If you want to use the Browse button with an action of Select Target folder you need to use individual dialogs.

Before each dialog do something like this:

Set Variable TEMPTARGET to $TARGETDIR$
Set Variable TARGETDIR to $NEWTARGET$
Display Dialog: ImagingInfo , wait for dialog to return (modal)
Set Variable NEWTARGET to $TARGETDIR$
Set Variable TARGETDIR to $TEMPTARGET$


I have found that using individual dialogs allows me to present a better explanation of what the particualr path is for and why they just should click "Next".