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

ComponentMoveData with IS6.3


1 reply to this topic

bahrr

bahrr
  • Members
  • 6 posts

Posted 14 November 2001 - 15:40

hi installshield community  !

I have a problem with the ComponentMoveData() function in an IS6.6 project.

I transferred an IS5.5 project to IS 6.6 and it seems that just about 20 components per component-transfer can be used. That's confusing me !!

Often I get an TransferError (number 0) during the installation. I don't use the OnMoving() event function  in my installscribt code.

Please give me an advise, how I can fix this problem !

Here is my function, which moves the components :


//function which moves ALL components !!
function UsdefInstallFiles(strComponent)
begin
//deselect ALL components
ComponentSelectItem  (MEDIA,COMPONENT_LAUNCH, FALSE);      
ComponentSelectItem  (MEDIA,COMPONENT_LAUNCHINI,FALSE);      
// ...

  if (strComponent % COMPONENT_LAUNCH)      then
     ComponentSelectItem  (MEDIA,COMPONENT_LAUNCH,TRUE);
     ComponentSetTarget   (MEDIA,"<svNewDir>",g_strMainDir);

elseif(strComponent=COMPONENT_LAUNCHINI) then
ComponentSelectItem  (MEDIA,COMPONENT_LAUNCHINI,TRUE);
ComponentSetTarget   (MEDIA,"<svNewDir>",g_strMainDir);

  //elseif ...
  //elseif
 endif;


   ComponentMoveData    (MEDIA,nDisk,0);
   ComponentMoveData    ("",nDisk,0);

//deselect all components again
ComponentSelectItem  (MEDIA,COMPONENT_LAUNCH, FALSE);      
ComponentSelectItem  (MEDIA,COMPONENT_LAUNCHINI,FALSE);      
// ...

  return (TRUE);
end;


best regards
robert


lasenbby

lasenbby
  • Members
  • 744 posts

Posted 14 November 2001 - 18:07

Not sure but if you are not using event driven (if you still have a program block), you are going to have all kinds of problems.  IS says it works, but I haven't seen or heard of it.

(Also, IS 6.?)