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

multiple cabs with <Commonfiles>


3 replies to this topic

Franky

Franky
  • Members
  • 18 posts

Posted 31 July 2002 - 08:50

I wrote a setup which contains 5 packages (Cabs) to be installed.
One of them contains files to be copied into a subdirectory of <Commonfiles>, but this doesn't work.
All other files are copied.
Only if I include those files to the main <data1.cab> package, they are installed.

Steph

Steph
  • Members
  • 5 posts

Posted 13 August 2002 - 12:09

How are you calling the move? I don't understand if only one of the cabs doesn't install or just the call to the <commonfiles>. I use the following code to call other cabs.

 MEDIA = "Courier";
 nResult = ComponentInitialize ( MEDIA , "Courier1.cab" );
 nResult = ComponentSetupTypeSet ( MEDIA , "Admin" );
 nResult = ComponentMoveData ( "", nDisk , 0 );
 nResult = ComponentMoveData ( MEDIA , nDisk , 0 );

 if(nResult < 0) then
//error handling
 endif;

 MEDIA = svMedia;
 ComponentInitialize ( MEDIA , "Data1.cab" );
 ComponentMoveData ( "", nDisk , 0 );

Franky

Franky
  • Members
  • 18 posts

Posted 20 August 2002 - 16:00

Hello Steph,

i did the initialization of all further media in the way you describe, except the ComponentSetupTypeSet() call. All my media are of the same setuptype.

But adding this line of code didn't help either.

the cabs (4 additionals in total) install everything except the part which is to be copied to COMMONFILES.

Only if i include those files to my data1.cab, they are installed.

Franky

Franky
  • Members
  • 18 posts

Posted 21 August 2002 - 10:48

Solved the problem !

i had no error handling (poor programming), and for this reason, i did not see that one of the files in a SelfRegister File Group could not register.
For this reason, the entire package was not installed.

Thanks for your help