harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

PathEdit default value for Property base

Hello,

How would I set default value to Path Edit textbox. I would like to point to default MyDocument directory of user as default and if user changes, it should be reflected too (means need property based)
Catalin
Posts: 6600
Joined: Wed Jun 13, 2018 7:49 am

Re: PathEdit default value for Property base

Hello,

The default property for the "Path Edit" control (from the "FolderDlg" dialog) is APPDIR.

In order to change the default value, please go to "Install Parameters" page and input your desired path value in the "Application folder:" field.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Re: PathEdit default value for Property base

Thanks for quick response Catalin. However, I would need two different paths like below:
Image

Is it possible to have another property say DATA_DIR and set my document as default value?
Attachments
12.png
12.png (4.88 KiB) Viewed 14255 times
Catalin
Posts: 6600
Joined: Wed Jun 13, 2018 7:49 am

Re: PathEdit default value for Property base

Hello,

If you click on the EditBox control (as in your screenshot), on the right side, under the "Properties" section, you can notice more properties, such as "Identification", "Display", etc.

Under the "Property" section, you will see the property name and its default value. In the "Default Value" field, you can set the default value for your property:
Capture.PNG
Capture.PNG (100.45 KiB) Viewed 14221 times
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
harshal119
Posts: 21
Joined: Wed Mar 27, 2019 10:18 am

Re: PathEdit default value for Property base

Thanks. Its working now. Appreciate your help
Catalin
Posts: 6600
Joined: Wed Jun 13, 2018 7:49 am

Re: PathEdit default value for Property base

You are always welcome.

I'm glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”