Upload files to "smtpproxy.net"

This commit is contained in:
2026-08-17 10:26:16 +10:00
commit d61c48f4ab
4 changed files with 685 additions and 0 deletions

View 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()
{
}
}