Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

IsCmdBld.exe always sets ERRORLEVEL=0


1 reply to this topic

daleq

daleq
  • Full Members
  • 9 posts

Posted 14 February 2003 - 23:22

Here's what happens when I run IsCmdBld.exe on a project and the build fails.

==========
** Fatal Error: -2200: Could not overwrite file C:\TEMP2\Calc.ism
** Fatal Error: -6199: Internal build error

C:\TEMP2>echo %ERRORLEVEL%
0
==========

Does everyone else get this same behaviour?

This is contrary to the documentation

If a build error occurs during a command-line build, InstallShield Developer sets the environment variable ERRORLEVEL to 1. If the build completes without any errors, ERRORLEVEL is set to 0.


By the way, don't think that the highly publicized IsSaBld.exe standalone build feature of ISD 8 solves this problem.

===========
ISDEV : fatal error -6015: Could not backup the ISM file
Upgrade completed with 1 errors, 0 warnings

Build finished at Feb 14 2003 01:48 PM

C:\TEMP2>echo %ERRORLEVEL%
0
===========

Please, please tell me that there is something wrong with my system and that you DO get ERRORLEVEL=1 when the build fails.

Thanks,
Dale

daleq

daleq
  • Full Members
  • 9 posts

Posted 20 February 2003 - 18:10

Don't use the -x switch and the ERRORLEVEL is set OK.

See http://community.ins...wthr....bld.exe