PageRenderTime 44ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/CSWindowsService/ProjectInstaller.cs

#
C# | 55 lines | 18 code | 3 blank | 34 comment | 0 complexity | b63192f64cb4aaa11f8590ab65d85870 MD5 | raw file
  1. /****************************** Module Header ******************************\
  2. * Module Name: ProjectInstaller.cs
  3. * Project: CSWindowsService
  4. * Copyright (c) Microsoft Corporation.
  5. *
  6. * The ProjectInstaller component contains two installers by default.
  7. *
  8. * * serviceInstaller1 - installer for your service. The ServiceInstaller
  9. * does work specific to the service with which it is associated. It is used
  10. * by the installation utility to write registry values associated with the
  11. * service to a subkey within the
  12. * HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services registry key. The
  13. * service is identified by its ServiceName within this subkey. The subkey
  14. * also includes the name of the executable or .dll to which the service
  15. * belongs. If you have muliple services in one process, you should add
  16. * multiple ServiceInstaller components to be associated with each service.
  17. *
  18. * * serviceProcessInstaller1 - installer for the service's associated
  19. * process. The ServiceProcessInstaller does work common to all services in
  20. * an executable. It is used by the installation utility to write registry
  21. * values associated with services you want to install.
  22. *
  23. * You can register events (e.g. AfterInstall) of ServiceInstaller and
  24. * ServiceProcessInstaller components, and handle the events in
  25. * ProjectInstaller.cs.
  26. *
  27. * This source is subject to the Microsoft Public License.
  28. * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
  29. * All other rights reserved.
  30. *
  31. * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  32. * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
  33. * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  34. \***************************************************************************/
  35. #region Using directives
  36. using System;
  37. using System.Collections;
  38. using System.Collections.Generic;
  39. using System.ComponentModel;
  40. using System.Configuration.Install;
  41. #endregion
  42. namespace CSWindowsService
  43. {
  44. [RunInstaller(true)]
  45. public partial class ProjectInstaller : Installer
  46. {
  47. public ProjectInstaller()
  48. {
  49. InitializeComponent();
  50. }
  51. }
  52. }