How to build Installer for Windows Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DBT

    How to build Installer for Windows Service

    When I add an Install project to my Windows Service project everything
    compiles and it works okay.

    The problem is the Installer only writes the files to disk, but doesn't
    actually install the service. Thus I must manually use InstallUtil.exe to
    install the service.

    I thought the installer handled this. I'm using VS2003.


  • Dmitry Baibakov

    #2
    Re: How to build Installer for Windows Service

    DBT wrote:
    [color=blue]
    > When I add an Install project to my Windows Service project everything
    > compiles and it works okay.
    >
    > The problem is the Installer only writes the files to disk, but doesn't
    > actually install the service. Thus I must manually use InstallUtil.exe to
    > install the service.
    >
    > I thought the installer handled this. I'm using VS2003.
    >
    >[/color]
    You should add a custom action for install, commit, rollback and
    uninstall nodes, including the primary output of your WinServer project.
    See in 70-310/320 preparation guide. You may do the following:
    1) Navigate to the Solution Explorer, right-click the ServiceSetup
    project, point to View, and click Custom Actions from the shortcut menu
    2) In Custom Actions, right-click Custom Actions and click Add Custom
    Action from the shortcut menu.
    3) In the Select Item In Project dialog box, double-click Application
    Folder, select Primary Output From WindowsServiceE xample (Active), and
    click OK. The primary output is added to all four nodes of the custom
    actions: Install, Commit, Rollback, and Uninstall.

    Dmitry

    Comment

    • DBT

      #3
      Re: How to build Installer for Windows Service

      Thanks, that did it ...


      "Dmitry Baibakov" <rook@hotbox.ru > wrote in message
      news:%23nliaM6o DHA.2536@tk2msf tngp13.phx.gbl. ..[color=blue]
      > DBT wrote:
      >[color=green]
      > > When I add an Install project to my Windows Service project everything
      > > compiles and it works okay.
      > >
      > > The problem is the Installer only writes the files to disk, but doesn't
      > > actually install the service. Thus I must manually use InstallUtil.exe[/color][/color]
      to[color=blue][color=green]
      > > install the service.
      > >
      > > I thought the installer handled this. I'm using VS2003.
      > >
      > >[/color]
      > You should add a custom action for install, commit, rollback and
      > uninstall nodes, including the primary output of your WinServer project.
      > See in 70-310/320 preparation guide. You may do the following:
      > 1) Navigate to the Solution Explorer, right-click the ServiceSetup
      > project, point to View, and click Custom Actions from the shortcut menu
      > 2) In Custom Actions, right-click Custom Actions and click Add Custom
      > Action from the shortcut menu.
      > 3) In the Select Item In Project dialog box, double-click Application
      > Folder, select Primary Output From WindowsServiceE xample (Active), and
      > click OK. The primary output is added to all four nodes of the custom
      > actions: Install, Commit, Rollback, and Uninstall.
      >
      > Dmitry
      >[/color]


      Comment

      Working...