Page 1 of 1

Reload dialog on changing the target folder

Posted: Wed Sep 01, 2010 2:02 am
by HAHNmediaservice
We need to "reload" the complete dialog on changing the target folder. Example:

1. User is in the dialog "destination" to select a target folder for installation.
2. User clicks on "Change ..." and selects a new target folder from the select target folder dialog.
3. After selection and clicking the OK button the complete dialog "destination" should be "reloaded".

Whether "if Variable WIZARD Equals Browse" nor "if Variable WIZARD Equals FolderText" works.

How we can achive that? Please advise ...

Re: Reload dialog on changing the target folder

Posted: Wed Sep 01, 2010 2:34 pm
by mills
Unfortunately, InstallAware doesn't support Event-driven programming. The only way to "refresh" the dialog is to have the user click a button which would cause the refreshed dialog appear.

You need something like:

label: display
{set up display}
Display dialog.
If result is btnRefresh
GoTo label: display
end

Re: Reload dialog on changing the target folder

Posted: Thu Sep 02, 2010 4:55 am
by HAHNmediaservice
What a pity! No, clicking a button to reload the dialog is out of the question.

We want to explain a little more our target on that issue:

The RequiredSpace and the RemainingSpace are always displayed different, depending on it's value in KB, MB or GB. This will be confusing for the user. In addition to that it's displayed with comma (,), we like to have it displayed with dot (.). Our approch was to recalculate/reformat the values given (which we did already in a script) and then to display them (initialy it works fine that way). BUT - on changeging the path using the browse button we are in need to recalculate/reformat again to display the new values because this doesn't work automatically. Since there is no custom action on the browse button we are stick here ...

Re: Reload dialog on changing the target folder

Posted: Thu Sep 02, 2010 3:36 pm
by mills
You're not the only one. For now, all I can do is note that another user desires this behavior.

http://www.installaware.com/forum/viewt ... f=2&t=5874