// Below is the code snippet done in InstallShield 5.x Professional project for changing the destination // of Component, this one is working perfectly in InstallShield Professional 5.x project if bServer then ComponentSetData( MEDIA, "HDK3", COMPONENT_FIELD_DESTINATION, 0, szAppPath ^ "Help" ); ComponentSetData( MEDIA, "Register", COMPONENT_FIELD_DESTINATION, 0, szAppPath ); ComponentSelectItem( MEDIA, "Slave", TRUE ); ComponentSetData( MEDIA, "Slave", COMPONENT_FIELD_DESTINATION, 0, szAppPath ); ComponentSetData( MEDIA, "Users", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ); ComponentSetData( MEDIA, "System", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ); ComponentSetData( MEDIA, "System Foxtools", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ); ComponentSetData( MEDIA, "Samples", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Samples"); ComponentSetData( MEDIA, "Samples MoSes", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Samples"); ComponentSetData( MEDIA, "Sample Tillinghast Suite", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Samples"); ComponentSetData( MEDIA, "Samples TAS", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Samples"); ComponentSetData( MEDIA, "Caplink", COMPONENT_FIELD_DESTINATION, 0, szAppPath ^ "CapLink"); ComponentSetData( MEDIA, "TAS", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Tasimport"); ComponentSetData( MEDIA, "TAS 10_11", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Tasimport_10_11"); ComponentSetData( MEDIA, "Asset Builder", COMPONENT_FIELD_DESTINATION, 0, szAppPath ^ "aBuilder"); ComponentSetData( MEDIA, "Models", COMPONENT_FIELD_DESTINATION, 0, szSysFilesPath ^ "Samples"); // end of code snippet from InstallShield Professional 5.x project // ***************************************************************************************** // Below is the code snippet that I am trying to do in converted InstallShield 11.5 InstallScript project // to change the component's destination during runtime. When I convert InstallShield 5.x project to IS 11.5, // it is converted as InstallScript project. // "ComponentSetData" is converted to "FeatureSetData" but FeatureSetData is not useful for this scenario. // So I am trying to use "FeatureSetTarget" to achieve the functionality of COMPONENT_FIELD_DESTINATION. // for eg : what I did was : // I created a property called HDK3 and assigned a directory (for eg) WINSYSDIR to HDK3 and using FeatureSetTarget, // I am trying to change value of to szAppPath ^ "Help" . // But value of is not changed to szAppPath ^ "Help", It still remains as WINSYSDIR. // Please help what should I do inorder to change the destination of Component during runtime. if bServer then FeatureSetTarget(MEDIA,"",szAppPath ^ "Help"); //FeatureSetData( MEDIA, "HDK3", "", 0, szAppPath ^ "Help" ); FeatureSetTarget(MEDIA,"",szAppPath); //FeatureSetData( MEDIA, "Register", "", 0, szAppPath ); FeatureSelectItem( MEDIA, "Slave", TRUE ); FeatureSetTarget(MEDIA,"",szAppPath); //FeatureSetData( MEDIA, "Slave", "",0, szAppPath ); FeatureSetTarget(MEDIA,"",szSysFilesPath); //FeatureSetData( MEDIA, "Users", "", 0, szSysFilesPath ); FeatureSetTarget(MEDIA,"",szSysFilesPath); //FeatureSetData( MEDIA, "System", "", 0, szSysFilesPath ); FeatureSetTarget(MEDIA,"",szSysFilesPath); //FeatureSetData( MEDIA, "System Foxtools", "", 0, szSysFilesPath ); FeatureSetTarget(MEDIA,"",szSysFilesPath ^ "Samples"); //FeatureSetData( MEDIA, "Samples", "", 0, szSysFilesPath ^ "Samples"); FeatureSetTarget(MEDIA,"",szSysFilesPath ^ "Samples"); //FeatureSetData( MEDIA, "Samples MoSes","", 0, szSysFilesPath ^ "Samples"); FeatureSetTarget(MEDIA,"",szSysFilesPath ^ "Samples"); // end of code snippet from InstallShield 11.5 InstallScript project // ***************************************************************************************************