PDA

View Full Version : copy files problem



NewsArchive
02-15-2008, 01:31 AM
Hi all,

I'm using the copy function in my script and have verified the source
file and the destination path exist. However, the even after display the
src / dest variables during the script (everything ok) the file is not
being copied.

This is a vista machine and the directory src / dst is inside program
files, so if vista is the problem, what would be the suggestions to
rememdy this?

Thanks,
Ken

NewsArchive
02-15-2008, 01:32 AM
Hi Ken,

Could you please post a "Copy File(s)" screenshot?

What does the %_SB_ERRORCODE% variable returns after the call to this Copy
File(s) function?

Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
02-15-2008, 01:32 AM
Thanks Friedrich. I got it working. Apparently my eyesight is going
with age. I did have a double slash in the dest path.

I do have another question though. We are trying localize the paths for
includes and it seems this is not possible. Can you confirm?

Thanks,
Ken

NewsArchive
02-15-2008, 01:33 AM
Hi Ken,

> Thanks Friedrich. I got it working. Apparently my eyesight is going with
> age. I did have a double slash in the dest path.

:)

> I do have another question though. We are trying localize the paths for
> includes and it seems this is not possible. Can you confirm?

You mean the paths for include scripts, right? You cannot use compiler
variables for the include script locations. The problem is that compiler
variables are resolved at "compile time". So it would not be possible to
open an include script via the IDE "tab" if you had a compiler variable in
the include script path.

In the next build it will be possible to make a project (including all
"include scripts") portable. Then you can have the include script (.sbi) in
the same folder as your main script (.sb6). The compiler will first check
the "core" include script folder (\Include sub-folder under the SetupBuilder
6 Program Files folder) and then the project folder.

Friedrich

NewsArchive
02-15-2008, 01:35 AM
Fantastic. Look forward to it.

Cheers!
Ken