update INI from dialog window? - 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!

kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

update INI from dialog window?

I need to update a ini file with the text entered in the dialog window
can u plz help me out how to do that?

thanx in advance
srinivas
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Advanced Installer has an INI editor. Using it you can specify the action that is taken when a key is created and also you can insert references to properties as value for a key.

You can read more here:
http://www.advancedinstaller.com/user-g ... files.html

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

only default vaue is coming not updating

Thanks for ur early reply. But it is not updating the ini file.

First I add new section.

Name of New Section is Printer.

I add new entery for section Printer.

Key - IP Address
Value - [Main_IP_Add]
Action - Create or Update



In Dialog window

Name of textbox is "txtIPAddress"
Property of TextBox is "Main_IP_Add"
Default value is "192.168.1.5"


When installing i changed the IP address in Textbox. But its showing default value only its not updating the ini file.


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

Hi,

You must use public properties in order to get information from dialogs and use it.
Therefore you must use MAIN_IP_ADD instead of Main_IP_Add.

You can read more about this here:
http://msdn2.microsoft.com/en-us/library/Aa370912.aspx

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Its Working

Thank You Very Much. It sloved my problem.

Return to “Common Problems”