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.

Logging of files

1 reply to this topic


  • Members
  • 18 posts

Posted 20 February 2003 - 23:36

Hello there,
Want to disable logging of file transfer before the files get copied and then enable it again as soon as the files get copied. The goal is to only disable logging for files that get copied, not for registry settings or environment settings.

One way is to disable it in OnInstalling() procedure and then Enable it in OnInstalled() proc. This procedure works but is too tedious when you have a lot of components in the program.

Does anyone know of a better way?

How about disable logging in OnInstallingFiles() and then enable it in OnMoved() function? Will this work?   ???  What is the order of these predefined procedural calls? Where can I find that?

Thanks to all people on this Forum, Everyone of you make this forum succcessful. Esp the Gurus.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 21 February 2003 - 03:46

Just wrap Disable(LOGGING) & Enable(LOGGING) around ComponentTransferData() which is a member of the OnMoving event.  If need be, add this event to your Setup.rul through the drop-down lists on the toolbars.

Unfortunately this will also leave out an self-registrations from the log file.

To get around this, also wrap the previously mentioned call with Enable (SELFREGISTERBATCH) & Do(SELFREGISTRATIONPROCESS).  That way all of the self-registrations are queued.

However, make sure to call the latter Do command _AFTER_ the Enable(LOGGING) or else it defeats the purpose of doing al this!


In other news, thanks for the kind words and you're welcome.  This is a great place.  Thanks Stefan for hosting it, so that all may enjoy its benefits.
user posted image