|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: May 2017
Posts: 6
|
ReadINIFileKeys not working depending on folder
I'm trying to use the ini file modifier over here:
https://github.com/arangodb/arangodb...mplate.in#L903 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. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
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. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2017
Posts: 6
|
![]()
Sorry, Yes. Its this script:
http://nsis.sourceforge.net/Update_a...dated_INI_file 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? |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,701
|
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.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|