Dynamic dialog 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!

UnstoppableDrew
Posts: 32
Joined: Tue Oct 16, 2007 4:04 pm
Location: Burlington, MA USA
Contact: Website Yahoo Messenger

Dynamic dialog box ?

Is the following possible ? I've boiled it down to the simplest possible example I could.

Say I have a dialog box with 2 input fields. The first one is named 'Host', and sets property 'HOST_PROP', with a default value of 'localhost'. The second input is named 'DB table', sets property 'DB_TABLE' and has a default value of '[|HOST_PROP]_profile'. When this dialog comes up the second input contains 'localhost_profile'. What I want to be able to do is if you change the value of Host, update the value of DB table to reflect the change in HOST_PROP. Is there a control event or subscribed event or something I can use to do this ?

Thanks,
Drew
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this is not possible because it is not supported by Windows Installer. There is a workaround for updating an edit box, but the edit box can be updated only by a control event that has Published events (for example a button).

A solution would be to add a button ("Validate" for example) which the user presses after he updates the "Host" field. This button and the "DB Table" edit box will be configured like in this How To:
http://www.advancedinstaller.com/user-g ... -text.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”