CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Location
    Toronto
    Posts
    309

    Removing Windows Services and event log

    1. How'd you delete an installed Windows Service?

    I installed a Windows Service I wrote myself, then I tried to install a newer version on top, it threw an exception: "The specified service already exist" (You can't just delete it from MMC, there's no such command/menu item for you to do that)

    2. How'd you delete event log on "Windows XP" - not clearing log. But to actually delete a log file. I stopped Event Log service from MMC. Then I deleted the log file under the directory:
    "C:\WINDOWS\system32\config\MyCustomLog.evt"

    I restarted the machine and the event log was restored.

    Thanks in advance.
    heHAA

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    1.) Go to the Visual Studio .NET Command Prompt and write
    installutil.exe /u yourservicename.exe

    2.) I don't know.

    martin

  3. #3
    Join Date
    Feb 2001
    Location
    TN
    Posts
    290
    1. How'd you delete an installed Windows Service?

    Mine uninstall like any other Windows application... but I have an installer for my services.

    Have you created an Installer for your service?

    If not you may want to look into doing that... it makes working with your service much easier.

    You can get some detailed instructions for adding the Installer in:

    Walkthrough: Creating a Windows Service Application in the Component Designer

    page 3 has this part.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured