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.

Registering DLLs & OCXs

1 reply to this topic


  • Members
  • 1 posts

Posted 01 March 2002 - 00:13

I'm hoping not to have to purchase a version of IS just to do something this simple. I have IS for VC++6 and have created an installer that installs various DLLs and OCXs into the system directory.

I don't really know what self-registering means, but when I use that option, the installer reports an error when I run it. My simple question is this: How do I tell the installer to do the equivalent of regsvr32 on these DLLs and OCXs?

Thanks for any help.


  • Full Members
  • 93 posts

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.

  // 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);

Product Availability Developer
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project