Installing a Windows Service

Posted on 2006-05-30
Last Modified: 2013-11-14
I was able to create a windows service on vb express by using a template I found.  I can install it manually using the installutil.exe but how would I automate this installation in a setup program?  I have used inno setup in the past and like it.  Any ideas?
Question by:jet46
    LVL 19

    Assisted Solution

    by:Daniel Van Der Werken
    LVL 7

    Accepted Solution

    Include the installutil.exe with your Inno Setup project in the [files] , then add a [run] section like

    Source: "installutil.exe"; DestDir: "{tmp}"

    Filename: "{tmp}\installutil.exe"; Parameters: """{app}\yourproject.exe"""

    LVL 5

    Author Comment

    Anyone know if installutil.exe is legally redistributable?
    LVL 7

    Assisted Solution

    Yes, its included in the .Net redistributable.
    LVL 2

    Expert Comment

    by:anwar ul haque
    If you have developed windows service and then you just need Installshield for deployment.Add your exe and other related and dependent files to your installshield project and  Set Installer Class propery to true of your windows service and build the project. Now you can install/ uninstall your windows service very easily.
    Hope this works

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now