collect configuration data on upgrade - 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!

timc
Posts: 20
Joined: Wed Apr 30, 2008 12:43 am

collect configuration data on upgrade

Hi,

Our product uses configuration data in an XML file installed into the
application directory. The file is dynamically updated at install time, and
remains on the target machine if the product is uninstalled.

If the software is installed and the file is already present (typically on
upgrade), we want to read the file and prepopulate text fields in our dialogs
with selected contents from the existing data. This works perfectly in a
separate application with registry data and a search, but I cannot figure out
how to do it with a file.

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

Re: collect configuration data on upgrade

Hi Tim,

I'm afraid that this is not supported by Windows Installer or Advanced Installer. However, you can try using a custom action which reads the file and sets installer properties (the properties of the controls in your dialogs). You can find some sample VBScript code here.

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

Return to “Common Problems”