Posted 04 March 2002 - 22:26
Create a file group that contains the files that you need to self-register. There is an option on the properties for the file group that needs to be set. Then in your code before you call ComponentMoveData() make sure that you enable SELFREGISTERBATCH.
If you look in the help for self-registering you will find more info on this.
This is the example from IS help.
//*******************************************************
// Enable batch method to queue self-registering files.
Enable ( SELFREGISTERBATCH );
// Install files.
nResult = ComponentMoveData( MEDIA, nDisk, 0 );
// Register the files, check for errors.
if ( Do ( SELFREGISTRATIONPROCESS ) < 0 ) then
szMsg = "File(s) failed to self-register: \n" + ERRORFILENAME;
MessageBox (szMsg, WARNING);
endif;
//*******************************************************
Anthony
Product Availability DeveloperAvantisInvensys Process Systems
Using InstallShield Developer 7.04 - Basic Project