I need a CA Windows Installer DLL to read values from an ini file. Doesn't have to find sections (better not, really) only find the key-name =" and return the value, so I can set a property to the value.
Any already existing out there?
Thanks,
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Need CA DLL to read ini files not in [Windows] dir
Started by
KipHansen
, Mar 23 2002 01:45
1 reply to this topic
Posted 26 March 2002 - 05:59
You'll have to write your own DLL for this one. The functions you want to use are GetPrivateProfileString and GetPrivateProfileInt, which take the file name as a parameter.
If you want to read an INI file that's included with your installation, you'll have to place your custom action(s) after ResolveSource in the execution sequence. The SourceDir property is unavailable until this action has run, and you're therefore unable to find where the INI file is located.
If you want to read an INI file that's included with your installation, you'll have to place your custom action(s) after ResolveSource in the execution sequence. The SourceDir property is unavailable until this action has run, and you're therefore unable to find where the INI file is located.
Jamie
The geek shall inherit the earth
The geek shall inherit the earth