Skip to content
⌘ NSIS Forum Archive

makensis return/errorcode

4 posts

thek#

makensis return/errorcode

Hello

I'm using makensis to automaticly create the setup files during the nightly build.

Does makensis provide some errorcode to check if the creation was sucessfull?
(e.g. if errcode != 0 jump to errorhandling)

The only way I found so far, is checking if a .exe file exist or to parse through the whole output file an check if a line starts with "error" 🤨

Norbert
niteflyer#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

or rtfm
niteflyer#
Sorry, I was a bit too fast with the link: that's another topic. Makensis returns errorlevel 0 for errorfree scripts (including warnings) else errorlevel 1. Watch the "Exit Code" at the end of the compilerlog.
thek#
Okay
Thanks for the Answer

Suggestion to the Developers:

Probably you should add this to the Documentation? 😉