You are here

Modifying NSI sources

3 posts / 0 new
Last post
LinkSlayer64
Offline
Last seen: 12 years 3 months ago
Joined: 2009-01-06 16:44
Modifying NSI sources

Ok, I decided to ask this because I'm hoping i'm not the only one who has ever had questions, I need help editing the 7-Zip launcher source, and many things, I just don't get a lot of it, for example:
NoINI:
;=== No INI file, so we'll use the defaults
StrCpy "$ADDITIONALPARAMETERS" ""
StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
StrCpy "$DISABLESPLASHSCREEN" "false"

it just makes no sense T.T especially, what are the dollar signs for? they're so prominent, but I don't have a clue what they're for
Thanks in advanced
edit, just to say, I'm not a completely incompetent programmer, all I'm asking is for some explanation, and I apologize if I came off a little pushy at first
In the end I may just try out Chris's but I would like some answers if possible

Nathan9222
Nathan9222's picture
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2007-12-06 22:35
The dollar signs "$" usually

The dollar signs "$" usually mean its a variable of some kind, if you look on the top of each script they are usually defined there without the dollar signs, they will be like this...

!define DEFAULTEXE "SomeName.exe"
Var ProgramExecutable

Im assuming that because "DefaultExe" is in brackets its because its defined in the beginning of the script and not a var but its been a pretty long time since i have used Nsis for scripting so if someone more experienced could aswer this that would be great. But i think what I told you is mostly correct. Smile

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

qwertymodo
qwertymodo's picture
Offline
Last seen: 12 years 5 months ago
Joined: 2008-03-17 19:08
Yes, the $ indicates a

Yes, the $ indicates a variable, and ${something} indicates a define (the equivalent of c or java's final variable type). You might want to check out the documentation. It's a really helpful resource for explaining just about everything in NSIS. Also, the WinAmp forums contain a place for discussing NSIS, so you can probably get a lot of help over there as well. It's also worth mentioning that NSIS stores all variables as strings, there are no variable types (but it can read numbers as integers in some cases).

Quamquam omniam nescio, nec nihil scio.

Log in or register to post comments