Modify an INI file in update (modify) - 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!

carter.sanders
Posts: 4
Joined: Fri Aug 14, 2009 2:02 am

Modify an INI file in update (modify)

My installer sets a host and port number at install time. These are entered in a dialog and are stored in the .ini file.

I'd like users to be able to rerun the msi (or click 'change' in add/remove programs), select 'modify' and get the dialog for host and port and have these values modified in the .ini file. I've got the dialog working, but the values aren't changed in my .ini when the rerun of the installer with new values is done. Can anybody tell me how to get this working? Thanks in advance.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Modify an INI file in update (modify)

Hi,

Unfortunately this behavior is not directly supported by Advanced Installer. You will need to write your own custom action to achieve this. Here are two scripts to read and write to an .ini file if you choose to use VBScript to achieve this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”