Old 29th May 2022, 11:16   #1
woom
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?
woom is offline   Reply With Quote
Old 29th May 2022, 17:31   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,528
I don't understand. Explain more and show example code...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 30th May 2022, 11:19   #3
woom
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
woom is offline   Reply With Quote
Old 30th May 2022, 13:03   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,528
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
Anders is offline   Reply With Quote
Old 1st June 2022, 14:53   #5
woom
Junior Member
 
Join Date: May 2022
Posts: 4
I beg you.

Can you give me an example?
woom is offline   Reply With Quote
Old 1st June 2022, 18:34   #6
pkonduru
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)
pkonduru is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump