Announcement

Collapse
No announcement yet.

Inserting ini Data Using a Custom Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I don't understand. Explain more and show example code...
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          I beg you.

          Can you give me an example?

          Comment


          • #6
            !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)

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎