cai_sebas
28th December 2004 12:07 UTC
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.
Afrow UK
29th December 2004 13:39 UTC
You are writing to [Field 4]. You should be writing to "Field 4". You've got the right idea with ReadINIStr though???
-Stu
cai_sebas
29th December 2004 14:02 UTC
:D Thank you very much, i overlooked this and a few other things. Because my instalation procedure is very extensive :confused:
Thanks
saurabhAggarwal
1st February 2005 07:34 UTC
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