Skip to content
⌘ NSIS Forum Archive

ReadINIFileKeys not working depending on folder

4 posts

dothebart#

ReadINIFileKeys not working depending on folder

I'm trying to use the ini file modifier over here:



Its reliably writing 'etc\arangodb3\newValues.ini' and editing the 'arangod.conf' ini file when I install in the default directory, i.e.

c:\Program Files\ArangoDB3 3.2.devel\

The file 'etc\arangodb3\arangod.conf' is altered, "directory" overwritten.

However, if I run the silent mode, and specify different directories for the installation:

c:\c\PROG\

'etc\arangodb3\newValues.ini' is created and contains the new values, however, 'etc\arangodb3\arangod.conf' isn't altered. Since the variables contain the full path of the ini files (as I revalidated with a popup) I've got no clue what could be going wrong here.
Anders#
And ReadINIFileKeys is? Something from the wiki? I assume you cannot use the normal NSIS ini functions?

The source you linked to is over 1300 lines, please create a Minimal, Complete, and Verifiable example.
dothebart#
Sorry, Yes. Its this script:



and I found out what was wrong.
Its checking the error state and aborts, which may eventually be set by preconditions in the script run.

I've fixed the wiki snippet and my situation by adding `ClearErrors`.

will the debug log enabled NSIS write whenever the error flag is set?
Anders#
No the logging build does not write flag changes for some reason. I will change it so it logs flag changes set by script instructions in the next release.