Setting a default value for an edit box - Advanced Installer Community

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!

aunitt
Posts: 9
Joined: Thu Jul 13, 2006 12:51 pm

Setting a default value for an edit box

Is it possible to set a default value for the text of an edit box in a dialog?

I've tried setting the text field but that doesn't appear to have any effect.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Is it possible to set a default value for the text of an edit box in a dialog?
Yes, create a property in the "Install Parameters" page with a default value. Switch to "Dialogs" page and use it as property for your edit control.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
aunitt
Posts: 9
Joined: Thu Jul 13, 2006 12:51 pm

Hi Gigi,

That's what I've tried to do. :)

Sorry to be really dumb, but exactly which property do I need to set for the edit box? Just assume I'm really don't know what I'm doing and you won't be far wrong. :)

Thanks

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

Hi,

Switch to "Install Parameters" page and create a property in the "Properties" list. Switch to "Dialogs" page, select your dialog and create a edit control. In the right "Properties" list click [...] button under the "Property Name" to browse for the edit control property. In the "Select a property" dialog select you property defined in the "Install Parameters" page.

Note that your property name must be in uppercase letters (public property) if you want to use it under the InstallExecuteSequence.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
aunitt
Posts: 9
Joined: Thu Jul 13, 2006 12:51 pm

Thanks, that got it to work.

Ashley

Return to “Common Problems”