We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bytecarp
Posts: 1
Joined: Wed Jun 21, 2006 9:16 pm

Additional Folder Path

OK I've browsed the archives and can't find anything helpful -

I've modified the FolderDlg to include an additional text box and browse button so that the user can set a different location for their data separate from the application path.

So how do I get the additional button to launch a browse folder dialog and then set the the text box to the user's selection?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here is how you can do this:

1. Create a property in the "Install Parameters" page like this:

Code: Select all

MYFOLDER     c:\
2. Switch to "Files and Folders" page and add a new "Property Based" folder for the property defined in the "Install Parameters" page.
3. Switch to "Dialogs" page and under the "FolderDlg" dialog add a new "Path Edit" control and a "Button" control.
4. Select the "Path Edit" control and in the "Property Name" field type MYFOLDER.
5. Select the "Button" control and add two "Published Events" like this:

Code: Select all

Event              Argument
----------------------------
[_BrowseProperty]  MYFOLDER
SpawnDialog        BrowseDlg
Note that the first published event is a "SetProperty" one.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
JoffBenn
Posts: 3
Joined: Thu Jun 22, 2006 11:27 am

Hi,

I have been trying to follow the instructions provided here, but I am unable to find any way of adding any new controls for the FolderDlg.

Can you please give more detailed instruction?

Many thanks

Joff
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The Dialog editor is only available beginning with 4.0 version of Advanced Installer (Enterprise edition). All necessary controls resides on the Toolbox or on the "New Control" Toolbar menu.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”