How to add large amounts of files to a run-time image

  • Thread starter Thread starter Joe T
  • Start date Start date
J

Joe T

Hi all,
I'm thinking this should be fairly simple but I can't find a quick easy way
to do this.

I've designed a component to install an application. No problem there.
In the standard install of the app that's run off of CD the setup creates a
few folders on c:\ for demo content.
For example it'll create the following c:\demo_images and copy about 100
bitmap files in to this folder. The files aren't an integral functioning
part of the app, they are template images which the user can make use of.

Is there any way to use Component Designer or Target Designer to say copy
all the files in to location X?
Or do I have to add the files to do component and then individually
specificy the destination?

If that is the case then I'm thinking it might just be easier to create the
necessary folders containing all the files and copy them to the run-time
image after TD has compiled it.


thanks,


Joe
 
Joe,

I usually do that in an easiest way. (unless some more complicated setup needed at run time - then I use set of bat/cmd/wsh scripts
run as FBA commands)

On my dev machine I place all the files in the desired location (as it will be on the target device). Then in my custom component I
use "Multiple Files" feature adding files from that location.
CD will set up the destination of all the files to the same location.

If I need to add more than one folder, I use "Files in Folders" feature of CD (menu item for Files node of the SLD component).
 
Joe,

There is no way to edit the destination of multiple file resources all at
once in Component Designer- you would have to set the destination path for
each file individually.

Your 2nd solution of just manually copying the files to the folder location
on the built runtime image will definitely work.
 
Thanks Lynda.
I ended up using the method suggested by KM
"On my dev machine I place all the files in the desired location (as it will
be on the target device). Then in my custom component I
use "Multiple Files" feature adding files from that location.
CD will set up the destination of all the files to the same location."


Worked like a charm!


Joe
 
Create the directories structure and files on your development machine and
then use the "Add Files in Folder" feature in Component Designer to add the
files and set the destination directories correctly.

-Preston V
 
Back
Top