Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1

TOPIC:

Missing error check in install scripts 14 years 6 months ago #169

  • debugger
  • debugger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
your scripts do not check the errorlevel of the called commands, AND it does call EXIT at the end, which has the effect that the console window will close itself, and the output cannot be seen.

Compile Lazarus Win32

C:/pp/bin/i386-win32/make.exe -C lcl all
make.exe[1]: Entering directory `c:/lazarus/lcl'
C:/pp/bin/i386-win32/rm.exe -f units/i386-win32/alllclunits.ppu
C:/pp/bin/i386-win32/gmkdir.exe -p units/i386-win32
C:/pp/bin/i386-win32/ppc386.exe -gl -Fu. -Fuforms -Fuwidgetset -Fuc:/pp/rtl -Fi
include -FE. -FUunits/i386-win32 -di386 alllclunits.pp
Free Pascal Compiler version 2.5.1 [2010/02/28] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
Fatal: Can't find unit system used by AllLCLUnits
Fatal: Compilation aborted
make.exe[1]: *** [alllclunits.ppu] Error 1
make.exe[1]: Leaving directory `c:/lazarus/lcl'
C:\pp\bin\i386-win32\make.exe: *** [lcl] Error 2
INFO: create c:\lazarusTemp directory

Strip Lazarus
INFO: Lazarus.exe NOT EXIST !!!
C:\pp\bin\i386-win32\Strip: 'C:\lazarus\lazarus.exe': No such file
C:\pp\bin\i386-win32\Strip: 'C:\lazarus\startlazarus.exe': No such file
C:\pp\bin\i386-win32\Strip: 'C:\lazarus\lazbuild.exe': No such file
C:\pp\bin\i386-win32\Strip: 'C:\lazarus\tools\svn2revisioninc.exe': No such file

INFO: Lazarus for win32 Striped OK

Lazarus32 Save -User- Settings for Windows
C:\lazarus\bin32\settings\compilertest.pas
C:\lazarus\bin32\settings\editoroptions.xml
C:\lazarus\bin32\settings\environmentoptions.xml
C:\lazarus\bin32\settings\inputhistory.xml
C:\lazarus\bin32\settings\lazarus.dci
C:\lazarus\bin32\settings\miscellaneousoptions.xml
C:\lazarus\bin32\settings\packagefiles.xml
C:\lazarus\bin32\settings\staticpackages.inc
8 Datei(en) kopiert

Copy Laz32 Executables to User Settings
Das System kann die angegebene Datei nicht finden.
Das System kann die angegebene Datei nicht finden.
Das System kann die angegebene Datei nicht finden.

??????????????????????????????????????????????????????
ERROR: Lazarus32 IDE NOT Build
??????????????????????????????????????????????????????

???????????????????????????????????????????????????????????
INFO: Sorry, Your Operating System NOT support 64Bits
can NOT build Lazarus for x86_64-win64
???????????????????????????????????????????????????????????

Please Log in or Create an account to join the conversation.

Re:Missing error check in install scripts 14 years 6 months ago #170

  • debugger
  • debugger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
i fixed the error checking in the ScriptsWin dir
SEE ATTACHMENT

now if an error happens, everything stops immediately, pointing to the script in which the error happened



it could be even more improved by calling an Error.bat with parameter which error message to print

i leave this to the reader

File Attachment:

File Name: ScriptsWin...0517.zip
File Size:18 KB

Please Log in or Create an account to join the conversation.

Last edit: by debugger.
  • Page:
  • 1