Hi,
I am trying to write to a file by using ConfigWrite.
But It is not writting to that file.
Here is how i am doing.
ReadINIStr ${TEMP1} "$EXEDIR\properties.ini" "Field 1" "State"
MessageBox MB_OK ${TEMP1}
Strcpy $DBUSR ${TEMP1}
MessageBox MB_OK "User is $DBUSR"
${ConfigWrite} "$INSTALL_DIR\abc.txt" "DBUSERID=" "$DBUSR" "$R0"
MessageBox MB_YESNO "$R0"
Here it is displaying the $DBUSR but it is not writting to that file.
Can anyone help me on that.
Regards
Sandeep
ConfigWrite to file not working
3 posts
ConfigWrite (actually all of the config functions)from TextFuncs does not create the File.
It is expecting to modify an Existing Config file.
Either Create it at Install time by adding this to the top of your function/section
It is expecting to modify an Existing Config file.
Either Create it at Install time by adding this to the top of your function/section
Or Include a template file with default values.
FileOpen $0 "$INSTALL_DIR\abc.txt" w
FileClose $0
"$INSTALL_DIR\abc.txt" file is already there.
I am just modifying the existing file based on the Write value from entry name in config file.
I am just modifying the existing file based on the Write value from entry name in config file.