Get the name of the smtp server - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Get the name of the smtp server

Can anyone suggest a way to get the name of the SMPT server?

I've an application that will be deployed in a networked environment, where Exchange server will be in use. I'd like a way for AI to pick up the name of the smtp server automatically without having to ask the end user, as all too often they don't actually know, all they do know is that their e mail 'just works'.

I suspect that this will require a custom action utilising VB Script, but I am having trouble getting a suitable script.

Thanks for any suggestions that anyone can make.

Dom
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This could be done by reading a registry value created by the installation of the Exchange Server (I'm not sure which one because this is not related to us).

You can try to use the Process Monitor to see what registry entries are created when installing Exchange Server:
http://www.microsoft.com/technet/sysint ... nitor.mspx

Also, perhaps you can find some useful information here:
http://www.msexchange.org/tutorials/Rem ... ation.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Cosmin

Thanks for your reply to this, however unfortunately it doesn't really solve the problem I have, which I could easily be approaching in entirely the wrong way.

Essentially I have an application built with VB.net into which I have placed functions that will let me know when a fatal error occurs, thus hopefully pre-empting support calls and being in a position to start work on a fix before even the end user may have realised that there is a problem. In order for this to work I need to use the local smtp server. Obviously when testing this myself I can just substitute my server or the specic server name of a third party doing testing, but when this is finally deployed I need somehow to get the name of the default smtp sever on a network.

As the application will be installed on client machines interogating the registry of the server is not really an option. In essence I think I'm looking for a way for AI to perfom an NSLookup on the client machine during installation and then store the name of the server that it finds. This, I think, should give me what I'm after but I'm open to any better suggestions if there are any as I'm currently taking pot shots in the dark.

Any ideas as to how I might achieve this would be most welcome.

Dom
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that Advanced Installer is not designed for this, it is designed to help you create installation packages. What you need can be done only through a custom action or by searching the registry.

Also, I'm afraid that I cannot give you a specific and detailed answer because this is in no way related to us and it exceeds my knowledge.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”