Page 1 of 1

Copying All Setup Data Files

Posted: Thu Nov 15, 2007 3:53 am
by nw
We have a setup that can function both as a network and client installer. When doing a network install, the setup needs to copy the entire setup data directory to another directory in the target dir so that the clients can run the setup from there. Copy/Move Local Files would be perfect if were recursive, but it's not.

I've tried doing a Find All Files and looping CopyFileA, but it can only copy files to a directory that exists, and CreateDirectoryA can only create a directory if all the directories but the top already exist.

Does anybody know of a way to accomplish this? I can't simply install them because they don't exist until after the setup is built.

Thanks,
Nick

Posted: Thu Nov 15, 2007 6:29 pm
by Alex_Ronquillo
Nick,

You can create the folder structure in the Files section in design mode. That will add "Create Folder" commands to your MSI code. After the create folder commands, you can use "Move/Copy Files" with *.* to each folder you created. That would surely work.

Posted: Thu Nov 15, 2007 7:04 pm
by nw
Since it makes a couple of folders for every file, this would be very, very tedious, and would have to be redone if we changed our installation at all. Is there something I'm missing here?

Also, how does InstallAware decide the layout of the installation data directory? Is there any way to simplify this diredctory layout?

Thanks for the help!
-Nick

Posted: Wed Nov 21, 2007 2:17 pm
by Alex_Ronquillo
nw,

When you create a folder in the following way:

Create Folder C:\\Test1\\Test2\\Test3\\Test4

and none of the folders Test exists, all the specified tree will be created, from Test1 to Test4

Posted: Fri Sep 19, 2008 10:31 am
by klavelle
Yes, but is there a way to avoid creating each folder individually?

I have a directory structure that needs to be copied to the target installation directory. This directory structure is several levels deep. I don't want to have to maintain this structure via the installer.

Is there any way to copy an entire directory and all of it's subdirectories via the Installer?