namespace Mail2SMS
{
using System;
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.ServiceProcess;
[RunInstaller(true)]
public class ProjectInstaller : System.Configuration.Install.Installer
{
private static ArrayList __ENCList = new ArrayList();
[AccessedThroughProperty("ServiceInstaller1")]
private ServiceInstaller _ServiceInstaller1;
[AccessedThroughProperty("ServiceProcessInstaller1")]
private ServiceProcessInstaller _ServiceProcessInstaller1;
private IContainer components;
public ProjectInstaller()
{
ArrayList list = __ENCList;
lock (list)
{
__ENCList.Add(new WeakReference(this));
}
this.InitializeComponent();
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if (((disposing && (this.components != null)) ? 1 : 0) != 0)
{
this.components.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
[DebuggerStepThrough]
private void InitializeComponent()
{
this.ServiceProcessInstaller1 = new ServiceProcessInstaller();
this.ServiceInstaller1 = new ServiceInstaller();
this.ServiceProcessInstaller1.Account = ServiceAccount.LocalSystem;
this.ServiceProcessInstaller1.Password = null;
this.ServiceProcessInstaller1.Username = null;
this.ServiceInstaller1.Description = "Screening POP3 mail account and convert specific mail to SMS-V4.1";
this.ServiceInstaller1.ServiceName = "Mail2SMS";
this.ServiceInstaller1.StartType = ServiceStartMode.Automatic;
this.Installers.AddRange(new System.Configuration.Install.Installer[] { this.ServiceProcessInstaller1, this.ServiceInstaller1 });
}
internal virtual ServiceInstaller ServiceInstaller1
{
[DebuggerNonUserCode]
get
{
return this._ServiceInstaller1;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this._ServiceInstaller1 = value;
}
}
internal virtual ServiceProcessInstaller ServiceProcessInstaller1
{
[DebuggerNonUserCode]
get
{
return this._ServiceProcessInstaller1;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
this._ServiceProcessInstaller1 = value;
}
}
}
}