Skip to content
⌘ NSIS Forum Archive

Push problem

7 posts

Afrow UK#

Push problem

I want to Push a string onto the stack that contains ";" in it, but NSIS thinks that I'm trying to insert a comment.
How can I bypass this ($\; doesn't work)

Ok reading the NSIS manual, it should work because it is inside quotes anyway...

My string looks like this:
Push "extract($\"$3$\":$\"textures/2.jpg$\", $\"$4$\");"

-Stu
Afrow UK#
Ah wait.
Looks like "Push" is to fault here...
Push expects 1 parameters, got 4.
Usage: Push string

This is what happens when I use...
Push "extract($\"$3$\":$\"textures/2.jpg$\", $\"$4$\");"

It's not recognising $\" like all other commands...

-Stu
pengyou#
I am puzzled - my copy of NSIS has no trouble compiling your command. I cut-and-pasted in your line of code to a test script, it compiled and worked ok.

Here is that line, cut from my working script:

Push "extract($\"$3$\":$\"textures/2.jpg$\", $\"$4$\");"

My copy of MAKENSIS.EXE is dated 28 June 2003, 06:44 (I got it via the nightly CVS snapshot a few days ago).

Brian
Afrow UK#
It seems that I was the one who caused it...

I have used the same piece of code about 36 times throughout my script (and the script is 100kb in size)
I missed one of them before when I was replacing " with $\"!

Sorry for being so stupid (I'm tired...)

-Stu 😛 🙂