Afrow UK
3rd July 2003 18:21 UTC
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
Joel
3rd July 2003 19:36 UTC
Is this work:
Hello$\;;
Afrow UK
3rd July 2003 19:43 UTC
Nope :(
I'm sure this is an NSIS bug...
-Stu
Afrow UK
3rd July 2003 19:44 UTC
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
3rd July 2003 20:12 UTC
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
3rd July 2003 20:14 UTC
I will try the new CVS (haven't updated for a week.)
-Stu
Afrow UK
3rd July 2003 20:32 UTC
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 :p :)