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

ini file

Hi,

Read the existing ini file get the values and insert into UI dialog of simple text and masked edit . if i edit the simple text and masked edit then it should update the ini file.


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

Hi,
Read the existing ini file get the values and insert into UI dialog of simple text and masked edit
This can be done by using the Advanced Installer INI file support.

First, in the "Files and Folders" page you import the INI you want updated (you use the "Import Files" button). After this, you double-click the INI file and replace with properties with the values you want updated.
http://www.advancedinstaller.com/user-g ... files.html

You can set default values for these properties in the "Install Parameters" page.
http://www.advancedinstaller.com/user-g ... eters.html
if i edit the simple text and masked edit then it should update the ini file.
For this you can set the properties used in the INI as the properties of the dialog controls.
http://www.advancedinstaller.com/user-g ... ditor.html

For example:
- you create the property NAME in the "Install Parameters" page (for this example it will hold the name of your application).
- you set it's value to the name of your application
- you use it in the INI file instead of the actual name
- in the "Dialogs" page you set NAME as the property of the edit box which sets the name of your application
- after the user modifies the value of the NAME property, the new value will be written in the INI.

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

Return to “Common Problems”