Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Updating INI File

Hi, I'm trying to update an ini file with a directory location.

I have an ini file with 'path' as a key, the value of this is set to a checkbox property.

On the dialog screen I have a check box which is checked as default, when checked a default path is written to the ini file.

I need to be able to uncheck this box and then using a path edit bo and button placed on the dialog box open the browsedlg dialog box enter the new location and when I click next this new location will be written to the ini file.

I was hoping to pass the value in the path edit box into the checkbox property used when I created the ini file above.

Hope this makes sense and somebody can help me. Thanks
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Updating INI File

Hi,
using a path edit bo and button placed on the dialog box open the browsedlg dialog box enter the new location and...
Here is a small tutorial that shows how to implement the browse for folder action.
I was hoping to pass the value in the path edit box into the checkbox property used when I created the ini file above.
This can be done very easy, all you need to do is to create new published event on the [Next] button of the dialog which contains the edit box with the path of the folder.
The event will set the property of checkbox with the value of the property attached to the edit box. Of course you will need to condition the event based on the
value of the property attached to the edit box, i.e. if the edit box is empty the event should not be executed.

Please make sure you use upper case letters for the properties attached to the controls.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Iain
Posts: 20
Joined: Tue Nov 03, 2009 12:13 pm

Re: Updating INI File

Cheers working now

Return to “Common Problems”