![]() |
#1 |
Junior Member
Join Date: May 2022
Posts: 4
|
Inserting ini Data Using a Custom Page
I use the custom page to
C:\ap\id.ini /id = input data want to make Is there a way? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
I don't understand. Explain more and show example code...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2022
Posts: 4
|
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 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
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).
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: May 2022
Posts: 4
|
I beg you.
Can you give me an example?
|
![]() |
![]() |
![]() |
#6 |
Member
Join Date: Jul 2015
Posts: 86
|
!insertmacro INSTALLOPTIONS_READ $5 "ioFile.ini" "Field 2" "State"
WriteINIStr $TEMP\something.ini section1 something $5 http://forums.winamp.com/showthread.php?t=346628 https://nsis.sourceforge.io/Docs/Cha....9.2.13(search for WriteiniStr) |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|