View Full Version : Using a script based variable for destination

04-13-2006, 05:12 AM
Please, please help. I have an Installscript msi project which I have recently created based on an old 6.3 one. In the install 3 destinations are set (registry is checked first and if the key doesn't exist then a default value is used). Thing is a version 6.3 the following was used ComponentSetTarget( MEDIA, "<YSP>", szYP ); and then <YSP> could be entered as a destination path on the component. This doesn't appear to be the case anymore. I know that all component functions are feature functions now but you can no longer use <YSP> in the destination. Do you have to export script functions to use them now? Am I missing something? :confused: :confused:

04-15-2006, 06:54 PM
Perhaps, the example mentioned in FeatureSetTarget (http://documentation.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield11langref/langreffeaturesettarget.htm) will point you in the right direction.