mirror of
https://github.com/donavon04/MPELicenseAgent.git
synced 2025-01-18 09:00:56 -07:00
68 lines
2.3 KiB
C#
68 lines
2.3 KiB
C#
|
using System.Configuration.Install;
|
|||
|
using System.ServiceProcess;
|
|||
|
|
|||
|
namespace MPELicenseAgent
|
|||
|
{
|
|||
|
partial class ProjectInstaller
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Required designer variable.
|
|||
|
/// </summary>
|
|||
|
private System.ComponentModel.IContainer components = null;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Clean up any resources being used.
|
|||
|
/// </summary>
|
|||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
|
protected override void Dispose(bool disposing)
|
|||
|
{
|
|||
|
if (disposing && (components != null))
|
|||
|
{
|
|||
|
components.Dispose();
|
|||
|
}
|
|||
|
base.Dispose(disposing);
|
|||
|
}
|
|||
|
|
|||
|
#region Component Designer generated code
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Required method for Designer support - do not modify
|
|||
|
/// the contents of this method with the code editor.
|
|||
|
/// </summary>
|
|||
|
private void InitializeComponent()
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
|
|||
|
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
|
|||
|
//
|
|||
|
// serviceProcessInstaller1
|
|||
|
//
|
|||
|
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem; // Runs the service as the logged in user
|
|||
|
this.serviceProcessInstaller1.Password = (string)null;
|
|||
|
this.serviceProcessInstaller1.Username = (string)null;
|
|||
|
//
|
|||
|
// serviceInstaller1
|
|||
|
//
|
|||
|
this.serviceInstaller1.Description = "Used to track MPE license usage";
|
|||
|
this.serviceInstaller1.DisplayName = "MPE License Tracker";
|
|||
|
this.serviceInstaller1.ServiceName = "MPE License Tracker";
|
|||
|
|
|||
|
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic; //Make sure it starts automatically
|
|||
|
//
|
|||
|
// ProjectInstaller
|
|||
|
//
|
|||
|
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
|
|||
|
this.serviceProcessInstaller1,
|
|||
|
this.serviceInstaller1});
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
|
|||
|
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
|
|||
|
}
|
|||
|
}
|