Old 30th August 2013, 10:13   #1
tcardoso
Junior Member
 
Join Date: Apr 2013
Posts: 3
Where can I find nsis error codes?

I'm building an nsis script and sometimes I print the error codes, but then I cant find anything on the web that maps my error id to a proper description on whats the error.

There isn't any error code listage for NSIS?

For example, currently on this line:
code:
ExecWait "net start Apache 2.2" $0


I'm getting error code 2
tcardoso is offline   Reply With Quote
Old 30th August 2013, 13:31   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,760
What makes you think these are NSIS error codes?

http://stackoverflow.com/questions/1...codes/18534134
http://blogs.msdn.com/b/larryosterma...25/421740.aspx
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

There are better ways of dealing with a service in NSIS but my guess here is that you need better quoting: ExecWait 'net start "foo bar"'

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 2nd September 2013, 07:51   #3
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 513
Send a message via ICQ to T.Slappy
There is no general explanations like "1" means application ended prematurely or similar.
Every application has custom codes, but it is a good habit to have "0" (zero) as success code.

Cool looking skinned Graphical Installers: www.graphical-installer.com
I offer NSIS scripting, C/C++/C#/Delphi programming: www.unsignedsw.com
Develop NSIS projects in Visual Studio 2005-2017: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.2 Tokyo: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
error, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump