Skip to content
⌘ NSIS Forum Archive

ConfigRead Problem

5 posts

aemik#

ConfigRead Problem

I use the ConfigRead command on my Installer.
Now I have the Problem that I only can use the Installer when die *.ini file is in the same folder.
Isnt the ConfigRead command a run-time command like "File" ?
Red Wine#
If the ini is not in the same folder, I guess you should pass the exact path where to find it.

Certainly the ConfigRead function operates at run time, but File is compile time instruction.
Backland#
ConfigRead will work with any file at runtime, just make sure you pass it the full, valid path to the file.
sr164w#
If i use the below code

${ConfigRead} "[File]" "[Entry]" $var

and my config file contains <name>abcd</name> <company>xyz</company> <choise>choise1</choise>

how to get the value of company and overwrite only the value of company.

thanks in advance