decompress -> result = 1
Klaus Major
klaus at major-k.de
Wed Oct 1 08:59:55 EDT 2008
Hi all,
can someone maybe give me a little hint what the result 1 means when I
decompress a file?
Here is an excerpt of an update/install routine of our current project.
This is happening on a Mac, will have to test on windows later.
All filenames, references etc. are VALID!
...
## Dateinamen zusammenbasteln...
## CONTRUCT FILENAMES
put the ims_installer_ordner of this stack & "win_exe.gz" into win_gz
put win_ordner & "iDual IMS.exe" into win_ziel
## Dateien kopieren...
## COPY FILES
## EXE
put url("binfile:" & win_gz) into w1
put decompress(w1) into w2
if the result <> empty then
############### Error decompressing Windows Runtime#########
answer "Fehler beim entpacken der Windows Runtime!" & CR & the
result
################ HERE I get "1" as the result***
alles_auf_anfang
exit to top
################ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! see below...
end if
### WORKS!???
put w2 into url("binfile:" & win_ziel)
if the result <> empty then
### WORKS!???
answer "Fehler beim schreiben der Windows Runtime!" & CR & the
result
alles_auf_anfang
exit to top
end if
###
...
***
The REALLY strange things are: the other decompress actions run
without errors
AND although there is an "exit to top" statement, the scripts keeps on
running and
afterwards EVERYTHING has been installed without problems?
So does "1" as the result of a decompress action really indicate that
something went wrong?
Could not find a hint in the docs.
Any insights very welcome.
Thanks in advance!
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list