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

Destination Folder


1 reply to this topic

Edmundo

Edmundo
  • Members
  • 26 posts

Posted 15 November 2001 - 13:01

Hi All,

I was wondering if anyone could help with the following:

Issue: I want to change the destination folder for components, depending on selcetions made by the User during the installation.

Question: Is it possible to overwrite/change the destination folder of a component during the installtion.

All help greatly apprciated,


Perotin

Perotin
  • Full Members
  • 407 posts

Posted 15 November 2001 - 16:41

in the components properties set some special targetdir like <MYTARGETDIR> or <COMPONENT_1_DIR> ...
Now you can set this target directory to the selcetion (szLocation) just before using ComponentMoveData.
Code Sample
ComponentSetTarget( MEDIA, "<MYTARGETDIR>", szLocation );
nResult = ComponentMoveData( MEDIA, nDisk, 0 );