A combined Windows installer for the MailAlertServer and MailRequestServer services, built with Inno Setup.
MailAlertServer monitors SQL Server database conditions on a configurable interval and triggers email alerts when conditions are met.
MailRequestServer processes queued email requests from a database table and sends them via SMTP.
Both services share a common SQL Server database and are installed together as Windows services by this installer.
- .NET 8.0 Runtime (Windows x64)
- SQL Server instance (local or remote)
- sqlcmd - included with SQL Server or the ODBC Driver for SQL Server
git clone git@github.com:dhunt84971/AlertMailServiceInstaller.git
cd AlertMailServiceInstaller
build.batThe installer will be output to Output\AlertMailServiceSetup.exe.
See BUILD_INSTRUCTIONS.md for detailed manual build steps and troubleshooting.
During installation, the user is prompted for:
- SQL Server instance name
- Authentication method (Windows or SQL Server)
- Administrator credentials (for database setup)
- Database name
- Application database credentials (created automatically)
- SMTP server settings
- Alert check interval
The installer then automatically:
- Creates the database and tables if they don't exist
- Creates a SQL Server login and database user for the application
- Inserts SMTP configuration into the database
- Writes config files for both services
- Registers and starts both Windows services
AlertMailServiceInstaller/
├── build.bat # Automated build script
├── setup.iss # Inno Setup installer script
├── setup_db.sql # Database setup SQL script
├── BUILD_INSTRUCTIONS.md # Detailed build documentation
├── LICENSE # MIT License
└── README.md # This file
This project is licensed under the MIT License - see the LICENSE file for details.