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

After Migrating from 5.5 to 7.0


1 reply to this topic

Travis2002

Travis2002
  • Members
  • 24 posts

Posted 17 September 2003 - 18:44

In InstallShield 5.5, we used the parameter: COMPONENT_FIELD_DESTINATION for ComponentSetData.
But now, in IS7, it says it's an undefined identifier.
What do I use in IS7 to replace: COMPONENT_FIELD_DESTINATION ??
I tried replacing the COMPONENT_FIELD_DESTINATION with: ComponentSetTarget
and I get an error: C8031: ',' : uncalled function
What am I doing wrong, what do I do?

Here's the code:
////////////////////////////////////////////////////
function Component_SetDestination(p_szName, p_szDestDir)
NUMBER t_nResult;
begin
t_nResult = ComponentSetData(MEDIA,
p_szName,
COMPONENT_FIELD_DESTINATION,
0,
p_szDestDir);
if(t_nResult < 0 ) then
Util_MsgBoxSE_FF("ComponentSetData",
"COMPONENT_FIELD_DESTINATION, " + p_szName + ", " + p_szDestDir);
endif;

return t_nResult;
end;
////////////////////////////////////////////////////
.::Travis Mixon::.

Travis2002

Travis2002
  • Members
  • 24 posts

Posted 17 September 2003 - 20:33

I am reading on the 'whitepapers - moving from 5.x to 7.0'
and it says:
ComponentGetData (szMedia, szCompName,
COMPONENT_FIELD_DESTINATION, nvData, svDest);
In Installshield Professional 7 this function call does not compile because the Destination property is a file group property, not a component property.

What should I do now?
.::Travis Mixon::.