Howdy,
I've created a simple script to run Mercury as a service on my Win2003. These are just methods compiled from other websites and xampp batch files. So the credit goes to them. For those who are interested here it is.
1. First download 2 files from Microsoft "instsrv.exe" and "srvany.exe". Just run a google search. Both are in the "rktools.exe" available for free from Microsoft.
2. Place the files in the same directory as MercuryMail.
3. Create a text file and rename it to "mercury_installservice.bat" or anything you like but must have the ".bat" extension.
4. Cut & paste the following into the new text file. Please take note to leave the \\ as it is or it won't work. Also rename the path to your actual path.
@echo off
echo Installing Mercury as an Service
E:\xampp\MercuryMail\instsrv Mercury E:\\xampp\\MercuryMail\\srvany.exe
E:\xampp\MercuryMail\mercury.reg
echo Now we Start Mercury
net start Mercury
pause
5. Create another text file and rename it to mercury.reg
6. Cut & paste the following into it. Remember to rename the path.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Mercury\Parameters]
"Application"="\"E:\\xampp\\MercuryMail\\mercury.exe\"
7. You can now run the batch file.
PS: The service will run without logging onto the system. However you cannot start or stop the Mercury server via Xampp control panel (well, not that I've found out yet). So you have to use the task manager to kill the srvany and mercury process manually.
I just keep this handy cos I always muck up my server testing stuff on it. Hope someone will find it useful.
Cheers, sama sama,
Michael Heng