Posted in
Hosting & IIS7,
Windows Server |
No Comment | 5,858 views | 23/03/2009 11:30
Today I learn, we can install MailEnable with Silent switch. I don’t know, it’s MailEnable feature or InstallShield feature (because Installshield has a silent switch) but It’s quite good for IT developers. You can install mailenable unattendedly with this command:
1
| mailenablestandart.exe /s /B |
mailenablestandart.exe /s /B
/s switch is Silent and /B switch is Batch Installation Mode. If you don’t use /B, you will prompt for some corfirmations. So you should you /B. But before installing MailEnable, you have to work on Registry. In that point, reg import command will be useful. If I finished test of unattended install, I’ll write the results.
Update: After testing of unattended install, I saw you have to do a registry trick before installation. New batch file:
1
2
3
4
5
6
7
8
| reg import "R:\Registry\MailEnable.reg"
"R:\MailEnable\mailenablestandard.exe" /s /B
net start "MailEnable List Connector"
net start "MailEnable Mail Transfer Agent"
net start "MailEnable POP Service"
net start "MailEnable Postoffice Connector"
net start "MailEnable SMTP Connector"
exit |
reg import "R:\Registry\MailEnable.reg"
"R:\MailEnable\mailenablestandard.exe" /s /B
net start "MailEnable List Connector"
net start "MailEnable Mail Transfer Agent"
net start "MailEnable POP Service"
net start "MailEnable Postoffice Connector"
net start "MailEnable SMTP Connector"
exit
I don’t why but after installation, you have to start services manually. So I did net start commands to start all services. Now let’s see our mailenable.reg file:
1
2
3
4
5
6
7
8
| Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Services]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Services\WEBMAIL]
"ApplicationType"="ASPX"
"Virtual Directory"=dword:00000001
"WebRoot"="IIS://localhost/w3svc/1/ROOT" |
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Services]
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Services\WEBMAIL]
"ApplicationType"="ASPX"
"Virtual Directory"=dword:00000001
"WebRoot"="IIS://localhost/w3svc/1/ROOT"
If you use my reg file, MailEnable’s Webmail will be installed on “Default Web Site”. If you want to change it, you should change WebRoot.