Page 1 of 1

installing same file into multiple locations

Posted: Fri Oct 19, 2007 12:50 pm
by Ryan Lee
Is it possible to install the same source file into multiple locations on the target?

For example
I have file X that I want installed into $TARGETDIR$\\folder1 and $TARGETDIR$\\folder2.

Currently I do do this by making multiple calls to Install Files but I think multiple copies of the same file are copied into the installation resulting in a large installation size.

Thanks for any help

Posted: Fri Oct 19, 2007 1:16 pm
by Alex_Ronquillo
You are right. If you install a file more then once, (in different folders), the file is copied that number of times in the installer. Here is a workaround:

Include the files as Support files or File Bag them and use the "Copy/Move Local Files" command to copy the files to all the locations you want.

Posted: Fri Oct 19, 2007 2:59 pm
by Ryan Lee
That solved my problem but now when I click remove from the add/remove programs dialog it always asks for the original source.

Posted: Fri Oct 19, 2007 3:08 pm
by Ryan Lee
Never mind, my bad