+ Reply to Thread
Results 1 to 4 of 4

Thread: Windows Event Log

  1. #1
    Unregistered Guest

    Default Windows Event Log

    I have a Windows Service application I'm writing in Visual Studio 2003 and .NET 1.1. I want to install an event log for my service - so that if the user runs uninstall, it will remove the event log. I can do this using the VS setup tools.

    1) I know I can install a service with SB, is there any issue with installing a service written in .NET?

    2) I don't see anything about setting up event logs in SB docs. What's the easiest way to do this?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Windows Event Log

    Hello,

    1) It should be possible to install services written in .NET. Did you experience any problem with this function?

    2) Good question. At the moment you can only use the "Send OutputDebugString" script function to send a string to an external debugger for display.

    For example:
    http://www.sysinternals.com/Utilities/DebugView.html

    We are working on extended Event Logging to provides a standard way for installation executables to record important software installation events.

    It will also be possible to register an event log and report an event.

    Please let me know if you have any further questions.

  3. #3
    Unregistered Guest

    Default Re: Windows Event Log

    Quote Originally Posted by linder
    Hello,

    1) It should be possible to install services written in .NET. Did you experience any problem with this function?
    No I haven't tried it, was just verifying that it should work, thanks.

    On the event log, I guess I wasn't totally clear. I was referring to creating a custom Windows event log and registering a source. I did some more research on this, and it seems that it can be created pretty easily from a vbscript script, which I know I can call from SB. So perhaps this is the best way?

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Windows Event Log

    Hello,

    Yes, you can use a vbscript for now. But we'll add this as a built-in feature to the next build (inspired by your post, very good idea, btw.). It will be available as a script command (RegisterEventSource, ReportEvent, etc.).

    Thanks,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SetupBuilder and Windows Vista [October 28, 2006]
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 26
    Last Post: 11-01-2006, 04:34 AM
  2. #00013: How to detect Windows 2000 SP4?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-22-2006, 03:36 AM
  3. SetupBuilder 5 and Windows Vista (Beta 1)
    By linder in forum SetupBuilder
    Replies: 0
    Last Post: 08-09-2005, 08:03 AM
  4. Big problem with Run Windows Installer
    By sphair in forum SetupBuilder
    Replies: 1
    Last Post: 01-28-2005, 07:08 AM
  5. Install software on *all" Windows versions?
    By Unregistered in forum SetupBuilder
    Replies: 2
    Last Post: 07-16-2004, 08:01 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •