Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8262985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:56:26+00:00 2026-06-08T03:56:26+00:00

I am using the NSIS function LineFind . My Problem: The function LineFind is

  • 0

I am using the NSIS function LineFind.

My Problem: The function LineFind is only searching the 1st line of a file then stopping. Its not going onto the next line of the file till the end. Isn’t the function meant to search EVERY line of the file for my TargetLine?

How can I get LineFind to search EVERY line and not just the 1st line?

Function FindLineCallback
    # Only ever prints out the first line and never runs this function again
    DetailPrint "LINE: $R9"

    ...Unrelated code to check line
FunctionEnd

Function FindLine
    # TOP = Top of stack
    # T-2 = mDir
    # T-1 = mFile
    # TOP = targetStr

    Pop $R8  # targetStr
    Pop $R7  # mFile
    Pop $R6  # mDir 

    ${LineFind} "$R6\$R7" "" "1:-1" "FindLineCallback"

FunctionEnd
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:56:28+00:00Added an answer on June 8, 2026 at 3:56 am

    Found the answer: I just need to Push a number value at the end of the callback function to “signal” that I want to continue looking

    Function FindLineCallback
        DetailPrint "LINE: $R9"
    
        Push 2
    FunctionEnd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the function Splice in my NSIS Installer. My Problem: When I
Using NSIS, how can I read a (optional) command-line parameter provided to an uninstaller?
Not quite sure how to accomplish this... I'm using NSIS to build an installer
Is it possible to add 2 numbers together in Native NSIS(not using libraries)? Var
I am creating the Installer Using NSIS, The installation works without any problem, the
I am using FileCopy of NSIS installer to copy a folder along with its
I have a batch file that I need to run within my NSIS installer.
Using NSIS, I want to launch an uninstaller and wait for it to finish
Am using nsis for launching my java application. I wanted to show a window
I am using NSIS to create my installers/uninstallers, and the uninstaller seems to have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.