Upload files to "smtpproxy.net"
This commit is contained in:
48
smtpproxy.net/ProjectInstaller.cs
Normal file
48
smtpproxy.net/ProjectInstaller.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System.ComponentModel;
|
||||
using System.Configuration.Install;
|
||||
using System.ServiceProcess;
|
||||
|
||||
namespace smtpproxy.net;
|
||||
|
||||
[RunInstaller(true)]
|
||||
public class ProjectInstaller : Installer
|
||||
{
|
||||
private ServiceInstaller smtpproxyInstaller;
|
||||
|
||||
private ServiceProcessInstaller processInstaller;
|
||||
|
||||
private IContainer components;
|
||||
|
||||
public ProjectInstaller()
|
||||
{
|
||||
processInstaller = new ServiceProcessInstaller();
|
||||
InitializeComponent();
|
||||
smtpproxyInstaller = new ServiceInstaller();
|
||||
processInstaller.Account = ServiceAccount.NetworkService;
|
||||
smtpproxyInstaller.StartType = ServiceStartMode.Automatic;
|
||||
smtpproxyInstaller.ServiceName = "SMTPProxy.NET";
|
||||
base.Installers.Add(processInstaller);
|
||||
base.Installers.Add(smtpproxyInstaller);
|
||||
}
|
||||
|
||||
private void serviceInstaller1_AfterInstall(object sender, InstallEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void serviceProcessInstaller1_AfterInstall(object sender, InstallEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user