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

  • Home
  • SEARCH
  • 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 8266265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:05:44+00:00 2026-06-08T05:05:44+00:00

I am using the function Splice in my NSIS Installer. My Problem: When I

  • 0

I am using the function Splice in my NSIS Installer.

My Problem: When I execute the below code the Splice function causes the installer to go into an infinite loop or crash it(it doesn’t respond). Whats going wrong?

Am I using Splice wrong? If I cant use splice to split my string the way I want it to, is there another function I could use to split a string?

Section "Dummy"

    Push "user_lib_4d C:\12d\9.00\DTEI_Customisation\SURVEY_12d9\DTEI_Survey_User_Lib"  # "user_lib_4d C:/blah"
    Push "0"
    Push "user_lib_4d"
    Call Splice   # causes an infinite loop/crash

SectionEnd
  • 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-08T05:05:47+00:00Added an answer on June 8, 2026 at 5:05 am

    I accidentally stumbled across the same trouble when using Splice function. But it took me only a little search on google to arrive at the right solution. The point is Splice is not meant for that. The Push "user_lib_4d" line is actually expecting a separator string. The solution is to use any of the actual string function meant for this purpose. There are plenty out there which makes it impossible to mention all here. You could rely on search substring, remove, or replace functions. The one I use and have had success is with StrRep by dirtydingus.

    In your case:

    Section “Dummy”

    Push "user_lib_4d C:\12d\9.00\DTEI_Customisation\SURVEY_12d9\DTEI_Survey_User_Lib"
    Push "user_lib_4d"
    Push ""
    Call StrRep
    Pop $R0 ;result
    
    MessageBox mb_ok $R0
    

    SectionEnd

    Edit: for advanced operations you could use StrStrAdv

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've run into a rather interesting problem. The code below generates an array that,
I am using cvCalcOpticalFlowLK function in my code (OpenCV 2.4.1 and Ubuntu 12.04). I
Using snap , I wrote a splice creating text from markdown, using this function:
I'm having a weird problem trying to interpolate data using the UnivariateSpline function. Interpolating
I am using CoffeeScript along with the JS splice function. My understanding of the
I want to make some C++ program and I'm using function popen here to
I have a question regarding use of FFT. Using function getBand(int i) with Minim
I've got a simple C class I have implemented, using function pointers in a
using getdate function assign today to the today.but why today year assign to year.its
When using the function imagepng() in PHP, how can I make sure the images

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.