PDA

View Full Version : copy files



NewsArchive
08-09-2007, 03:50 AM
I am trying to copy a file that will be on the CD during the install process
(this is so we can change the file at any time just before we burn the CD...
I am using the copy procedure and it keeps failing... I used to use this in
Wise ... this was copy local file in Wise.

Source:
F:\ALLVDLUX\Windows\delsrc\histcom\myfile.dat

Destination:
%_SB_INSTALLDIR%\myfile.dat

I get an error from the installer... copy process failed.

Any idea's?


--
Ray Rippey
VMT Software - http://www.vmtsoft.com

NewsArchive
08-09-2007, 03:51 AM
Hi Ray,

Three possible reasons come to mind:

1. You are running the installer in TEST mode
2. The source folder specification is invalid (I noticed you are using a
hard-coded path; fails if the CD drive letter is, say, G:)
3. The destination folder does not exist

HTH,

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-10-2007, 01:39 PM
Ok, I'm just having trouble figuring out what the variables are....

I want to copy from my CD or wherever the install program is located... I
assume the source is:

source:
%CURDIR%\myfile.dat

I am installing into the chosen folder.. normally c:\vmtvid... but the user
can select so it can be anywhere...

Destination:
%_SB_INSTALLDIR%\histcom.dat

Now, I get the copy failed again.... this is during the creation of the
install... not during the install itself.

I even tried... for source: myfile.dat ... still not working.

This has to be simple... right?

Thanks,

Ray

NewsArchive
08-10-2007, 01:39 PM
Hi Ray,

Yes, very simple. Only one line and you are done. Just checked this and it
works fine here (btw, we are using this in all Consulting projects to copy
files from CD to the target machine).

But what do you mean by "copy failed... this is during the creation of the
install"? Do you mean it fails at *compile time*? Are you using the #copy
file compiler directive instead of the Copy File(s) installer function?

Just post the compiler output and I am sure we can help.

Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-11-2007, 12:40 PM
Hi Ray,

This is what I use:

Source:
%SRCDRV%\SomeFolderOnCD\histcom.dat
(shows as something like E:\SomeFolderOnCD\histcom.dat)
Destination:
%_SB_INSTALLDIR%\histcom.dat

Note I always put this in the script position after [Install Files]
because I know the installation folder has been created.

Best Regards,
Geoff Spillane
Data Down Under

NewsArchive
08-14-2007, 12:14 PM
Just to let you know of the status of the copy files...

I was as simple as I thought... I just had a hard time thinking that way...

My first mistake was I did use the compiler directive for #copy files... not
the Copy Files command.

Then, because I was testing, I needed to put the file I was copying in the
root folder of the drive where my install.exe ended up being located... in
my case the F drive.. I didn't want to use a folder... This would have
actually worked on a CD.. .but I was testing it on my hard drive.

So I used the following command:
Copy File(s)

Source:
%SRCDRV%\myfile.dat

Destination:
%_SB_INSTALLDIR%\myfile.dat

Thanks all for all of your help... it's the little things that always seem
to get me :)

Ray Rippey
VMT Software

NewsArchive
08-14-2007, 02:22 PM
Hi Ray,

You are very welcome! Thank you for the good news :)

Friedrich