Search code examples
installationwindows-installerinstallshieldcustom-action

Update Edit Field with property set by FileBrowse dialog


I have an Edit field that begin's empty. The user uses a button that launches the FileBrowse dialog and allows them to choose a file. This is all working, the file is stored into a property and the functionality is as intended.

However, the Edit Field is not being updated once the user chooses the file. Going forward then back a dialog shows the property in the field, but I can't ask the user to do this. I have read that this is an MSI limitation and was wondering if there are any ways around it.

Essentially I need to "refresh" the dialog, or at least the edit field control after the user chooses their file.

Thanks


Solution

  • This is indeed a limitation from Windows Installer. The only solution to overcome this from an MSI package is to use the twin dialog method.