Jump to content


How to use "Stop Build on Error" option

  • Please log in to reply
No replies to this topic

#1 pscEx


    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
    European Union

Posted 08 July 2008 - 02:04 PM

Like Jaclaz suggested, starting with version 075 beta 5 WinBuilder has a new option which can be set in the 'Options' pane.
Attached File  options.gif   22.21KB   80 downloads
If this option is set:
Whenever during build an error occurs, the build is aborted immediatelly.
Two exceptions:
  • An error immediatelly following a 'System,ERROROFF' statement, is not treated as error and therefore the build continues
  • If there is an open hive, the remainder of the script is scanned (but not executed) until the corresponding RegHiveUnload occurs.
    This RegHiveUnload is executed. Then the build is aborted.
Here a sample:






	 Echo,"No Error Occurred"


	 Echo,"Everything done"
Because %var% is not defined,
will bring an error.

Here the result:

Posted Image Processing section: [process]
Posted Image File [%BaseDir%\Projects\nativeEx_barebone\CodeBox.txt] Version [1]
Posted Image RegHiveLoad - File: [%BaseDir%\Target\nativeEx\I386\System32\config\default] Section [WB-Default]
Posted Image StrFormat - Failed to convert [%var%] because [%var%] value is not valid:
Posted Image Halt
Posted Image RegHiveUnLoad - Unloaded registry hive: [WB-Default]
Posted Image Finished processing script: CodeBox test
Posted Image Script time: 265 miliseconds
Posted Image Script has been sucessfully processed!

In WinBuilder.exe the 'Stop Build on Error' option is intentionally switched on by default.

Usually an error causes that the PE is different from that what you are waiting for.

'Smaller' errors like trying to delete a non-existant directory, must be avoided by the .script developer.

BTW: This new feature is included in the next 'Nightly Build'.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users