Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Installing a component in two directories


1 reply to this topic

mstembri

mstembri
  • Members
  • 7 posts

Posted 09 September 2003 - 22:39

Is there a way to install a component into a second directory during install?

CODE

function DefaultComponent_Installing()
begin

 ComponentSetTarget(MEDIA, "<FOOBAR>", "C:\\FOO");
 ComponentTransferData (MEDIA);

end;


I thouht that might work, but I have two components in my project and I am not sure how to specify that I want ComponentABC to be installed to C:\\FOO, not Component123. The default installation directory for ComponentABC is TARGETDIR.

mstembri

mstembri
  • Members
  • 7 posts

Posted 16 September 2003 - 14:00

Answering my unanswered question...

I ended up using XCopyFile to copy the contents of the first folder into the second. It's rough but it suited my purpose.