PDA

View Full Version : Throw compile error if "#copy file" failed



NewsArchive
06-28-2012, 04:31 AM
Hi Friedrich,

how can I throw a compile error, if the compiler directive "#copy file"
doesn't succeed?

Thanks
Markus

------ Build started: Project: master.sb7, Configuration: Release Win32
------

------ SetupBuilder (tm) Project Script Compiler and Linker for Windows
------ Copyright (c) 1997-2012 Lindersoft
------ SetupScript (tm) Installation Script Language
------ Copyright (c) 2003-2012 Lindersoft
------ All rights reserved.

------ Developer Edition Version 7.7.3720
------ SetupBuilder EXE (SBEXE) Compiler Version: 7.7.3720

master.sb7
..
..
..
Copying...
G:\___SVN\BIN\Pervasive\V10.31\Client\PervasivePSQ Lv10Client_x86.msi to
C:\Users\Administrator\AppData\Roaming\Lindersoft\ SetupBuilder 7\Tmp\ASQL
Copy process failed.
..
..
..
--------------------------------------- Done
---------------------------------------

master.sb7 - temp.exe - *0* error(s), 0 warning(s)

Total file(s) : 0
Total data size: 0 bytes (0.00 MB)
Total .exe size: 77,166,740 bytes (73.59 MB)
Total .bin size: 1 bytes (0.00 MB)

Location:
C:\Users\Administrator\Documents\SetupBuilderProje cts\_Neu\_master\master\temp.exe

Compilation Time: 19.72 sec.
Date/Time: 6/28/2012 -- 12:22:03PM

------------------------------- Compilation finished
-------------------------------

Processing post compilation tasks...
Deleting...
C:\Users\Administrator\AppData\Roaming\Lindersoft\ SetupBuilder
7\Tmp\ASQL.zip
Executing...
C:\Users\Administrator\Documents\SetupBuilderProje cts\_Neu\_master\..\_helper\renameto\renameto.exe
OK

--------------------------------------- Done
---------------------------------------

NewsArchive
06-28-2012, 10:35 AM
Markus,

> how can I throw a compile error, if the compiler directive "#copy file"
> doesn't succeed?

If it is not a "Process after script compilation" action then the attached
code should work fine to abort the installation.

Friedrich

NewsArchive
06-28-2012, 10:35 AM
For EVERY copy line? :-(

So I will write an include script. Not so comfortable...

Markus

NewsArchive
06-28-2012, 10:35 AM
> For EVERY copy line? :-(
>
> So I will write an include script. Not so comfortable...

Perhaps we can add a global compiler option to one of the next SB builds to
abort the compilation process if a directive fails.

Friedrich

NewsArchive
06-28-2012, 10:36 AM
This would be great, Friedrich.

Markus Zander

NewsArchive
06-28-2012, 10:36 AM
>
> This would be great, Friedrich.
>

Should be doable. We'll add it ASAP (to 'Tools' | 'Options...' | Compiler
tab).

Friedrich