Archive: ReadRegstring and WriteINI


ReadRegstring and WriteINI
This should have been simple but it doesn't work for me. :(

After using the User Manual/Scripting Reference and the forum i have come up with this;

Section "Appl...

EnumRegValue $R9 HKEY_CURRENT_USER "Software\iMesh\iMesh5\Transfer" "DownloadDir"
WriteINIStr $PLUGINSDIR\ioA.ini "[Field 4]" State $R9

ReadINIStr $0 "$PLUGINSDIR\ioA.ini" "Field 4" "State"
So first a regstring is read and then written in the ini file (that will be used for a custom page)

Even if the EnumRegValue is wrong the WriteINIStr will not write anything, i dont see it when i have opend the custompage (running the setup)

I hope it can be solved.

You are writing to [Field 4]. You should be writing to "Field 4". You've got the right idea with ReadINIStr though???

-Stu


:D Thank you very much, i overlooked this and a few other things. Because my instalation procedure is very extensive :confused:

Thanks


HI

I WANT TO SHOW SOMETHING ON MY CUSTOM PAGE WHEN USER RUNS MY INSTALLER. IS THERE IS ANY PROBLEM IN THE FOLLOWING CODE.

Page custom CustomPageC

Function CustomPageC
WriteINIStr ${ADDED_FILES}\ioC.ini "Field 3" Text "$PROGRAMFILES"
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioC.ini"
FunctionEnd