How to Read all the keys from INI File(Configuration file)

Got a problem you cannot solve? Try here.
rajeshjeet
Posts: 7
Joined: Wed Sep 06, 2006 7:17 am
Location: Bangalore
Contact:

How to Read all the keys from INI File(Configuration file)

Postby rajeshjeet » Wed Sep 06, 2006 8:08 am

I am evaluating IA and i have my configuration file which will be public to all in the CD.
my ini file contain all the information about component and features
This ini file will be dynamic

Question1:
I want to read the all the keys and their values under a section

Question 2:
Is it possible to add controls to dialogs in runtime.

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Wed Sep 06, 2006 8:31 am

1. Use "Get INI FIle Seetings"
Example: Get INI $SUPPORTDIR$\\updates.ini, [Update Packs for Versions] $VERSION$ Value into Variable UPDATE_AVAILABLE

2.No it is not possible to add controls at runtime, however it is possible to enable, disable, make visible, hide controls
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

rajeshjeet
Posts: 7
Joined: Wed Sep 06, 2006 7:17 am
Location: Bangalore
Contact:

How to Read all the keys from INI File(Configuration file)

Postby rajeshjeet » Thu Sep 07, 2006 12:25 am

Thanks for Reply Jimo

but wat i wanted to read all the keys from a section as i dont know how many key are present in a section and i will not be knowing the key names also.

Is there any way to define a variable of type array or list or hash

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Sep 07, 2006 6:28 am

You may want to use Read from Text File then, and accordingly parse the results of this function when reading your INI file.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 38 guests