I use the custom page to
C:\ap\id.ini /id = input data
want to make Is there a way?
Inserting ini Data Using a Custom Page
6 posts
I don't understand. Explain more and show example code...
The following is an example of a custom page
[Settings]
NumFields=2
[Field 1]
Type=Label
Text=ID :
Left=2
Right=67
Top=19
Bottom=26
[Field 2]
Type=Text
Left=69
Right=181
Top=16
Bottom=28
The value entered in [Field 2]
C:\ap\id.ini
IP = [Field 2] Data entered
[Settings]
NumFields=2
[Field 1]
Type=Label
Text=ID :
Left=2
Right=67
Top=19
Bottom=26
[Field 2]
Type=Text
Left=69
Right=181
Top=16
Bottom=28
The value entered in [Field 2]
C:\ap\id.ini
IP = [Field 2] Data entered
If you want to write the value from a text box to a .ini, in the page leave callback function, read the value (INSTALLOPTIONS_READ) and write it to your .ini (WriteIniStr).
I beg you.
Can you give me an example?
Can you give me an example?
!insertmacro INSTALLOPTIONS_READ $5 "ioFile.ini" "Field 2" "State"
WriteINIStr $TEMP\something.ini section1 something $5
https://nsis.sourceforge.io/Docs/Cha....9.2.13(search for WriteiniStr)
WriteINIStr $TEMP\something.ini section1 something $5
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
https://nsis.sourceforge.io/Docs/Cha....9.2.13(search for WriteiniStr)