PDA

View Full Version : Errorcode?



NewsArchive
01-29-2007, 04:46 AM
The documentation says "Handle Text File Operations" returns non-zero on
error.
How do I test for this?
I tried writing a simple one-line text file, and showing a message box with
%_SB_ERRORCODE% after creating the file and writing one line.
Then I set the read-only attribute on an existing copy of the file. The
message box still showed a value of zero although creating and writing the
file had failed (because the existing file couldn't be overwritten.)
Do I need to call it as a function somehow?

TIA

Jane

NewsArchive
01-29-2007, 04:47 AM
Jane,

I'll check this. If %_SB_ERRORCODE% still showed zero when writing to a
read-only file, then I think it's a bug in the installer.

Thanks,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

NewsArchive
01-29-2007, 04:47 AM
Jane,

It's an installer bug :-( Fixed now. Thank you for bringing this to my
attention.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes