Skip to content
⌘ NSIS Forum Archive

Inserting ini Data Using a Custom Page

6 posts

woom#

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#
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
Anders#
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).
pkonduru#
!insertmacro INSTALLOPTIONS_READ $5 "ioFile.ini" "Field 2" "State"
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)