murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Path Edit

Hi..

During application installation, path for the application is set.
Eg: C:\MyApplication

I need to get another path value from the user. This path value must be defaulted to "<application-path>/workspace", but should be editable by means of a 'Browse' button.
Eg: C:\MyApplication\workspace

I Tried this:
Added another 'Path Edit' control.
Set 'Default Value' to '[APPDIR]'. (Also tried: [APPDIR]\workspace)

But:
During installation, one of these error pop-up:
unavailable.png
unavailable.png (147.94 KiB) Viewed 7388 times
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Path Edit

Hi.. Dint get any inputs on how i can proceed..

Temporarily, i'm using a normal edit-box where the user has to enter the path manually..

But i could really use another Path-Edit control !
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Path Edit

Hello,

Here's the "How to browse for a folder at install time?" user guide article to help through with all the steps.

You're getting the errors because Windows Installer tries to resolve that path before sending it to the PathEdit control. So you need to specify a default value (a valid one) for the property of the PathEdit control.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Path Edit

Hi.. I did the above steps in the user guide..

On clicking my new browse button, the BrowseDialog opens & i select a folder.
But the path of the selected folder is not set to the 'Path Edit' . The path edit always shows : C:\

Did i do any step wrong ?
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Path Edit

Got THIS working too..

On a more carefull repeat of the entire tutorial,

i came across this #NOTE:
Also note that the Argument is "MY_DIR" and NOT the Formatted Type value "[MY_DIR]".

And d'walaa.. it's working...
:)

Return to “Building Installers”