PDA

View Full Version : Error Codes



meercat
05-18-2008, 10:19 AM
Hi,

Is there a reason that the value returned by %_SB_ERRORCODE% is sometimes 0 on success and other times NOT 0?

Having this change from one function to another makes reading the code very difficult as you have to continually consult the doco.

This also goes for strings of filenames where sometimes they have to be wrapped in quotes if they include spaces and other times not, with no obvious logic as to how and when. Why can't all string variables be parsed in their entirety?

andrea
05-18-2008, 10:36 AM
Yes, the same is true for all Windows APIs. Sometimes 0 means success and sometimes 0 means failure.

The value returned by %_SB_ERRORCODE% depends on involved Windows APIs.

Hope this helps.

meercat
05-19-2008, 01:04 AM
If I wanted to program the installer, surely I would have bought C++, etc. The Error Code should return a consistent value so that debugging, which is difficult to do given that the debugger does not provide the same flexibility as C++, like breakpoints, etc.

Which brings up another point, why can't we adjust the width of the Script Functions window as when you are trying to debug, all the values are typically too far to the right of the window?

linder
05-19-2008, 01:25 AM
Thanks for your comments.

We have added your "width adjust" suggestion to the wish list for SetupBuilder 7.x.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner