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