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.
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).
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.
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.
FOLLOW US
Get the latest news in Application Packaging