In http://msiext.codeplex.com you'll find a custom action that can do this.
TcpIp_Connect Attempts to connect to a remote server, useful for checking whether there's a listening server. See http://msdn.microsoft.com/en-us/library/ms742212(VS.85).aspx for parameter details. Parameters: TCP_IPADDRESS remote TCP/IP address to connect to TCP_PORT remote TCP port to connect to TCP_SOCKET_TYPE socket type, one of SOCK_STREAM, SOCK_DGRAM or SOCK_RAW TCP_PROTOCOL,one of IPPROTO_TCP or IPPROTO_UDP Returns: TCPIP_CONNECTION_ESTABLISHED. Set to 1 if connection was successfully established. check CA_ERROR on function failure Hope this helps, dB. dB. @ dblock.org Moscow|Geneva|Seattle|New York -----Original Message----- From: Simon Topley [mailto:simon.top...@wallingfordsoftware.com] Sent: Tuesday, September 22, 2009 9:12 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Ping Server from dialog Hi Guys, long time no see. We recently bought a company and I've been tasked with creating an installer for their products. oh joy. One thing they wish to do is use the installer to do all the work a config tool could. So during installation we want to collect servers and port numbers and test the connection to them all. I've managed to collect all the info i need and added it to the registry etc but I'm struggling with testing the connection to these servers. I'm happy to just us ping, but the only way i can see to do it is to embed ping.exe in the installer and call it with customactions. I've not really tried this yet so I'm not sure if it will even work but it still seems a bit of a rubbish way to do it. I'd like to avoid writing any custom code if i could as I'm in a hurry to bang this out and move on. Any ideas? Disclaimer: This electronic communication and its attachments may contain confidential, proprietary and/or legally privileged information which are for the sole use of the intended recipient. If you are not the intended recipient, any use, distribution, or reproduction of this communication is strictly prohibited and may be unlawful; please contact the sender and delete this communication. MWH does not warrant or make any representation regarding this transmission whatsoever nor does it warrant that it is free from viruses or defects, correct or reliable. MWH is not liable for any loss or damage that occurs as a result of this communication entering your computer network. The views expressed in this message are not necessarily those of MWH. This communication cannot form a binding agreement unless that is the express intent of the parties and they are authorized to make such an agreement. MWH reserves all intellectual property rights contained in this transmission. MWH reserves the right to monitor any electronic communication sent or received by its employees. This communication may come from a variety of legal entities within or associated with the MWH group. For a full list of details for these entities please see our website at www.mwhglobal.com. Where business communications relate to the MWH UK Limited entity, the registered office is Terriers House, 201 Amersham Rd, High Wycombe, HP13 5AJ Tel: 01494 526240 and the company is registered in England as registration number 01188070. Where business communications relate to the MWH Constructors Limited entity, the registered office is as above and the company is registered in England as registration number 04635724. Where business communications relate to the MWH Soft Limited entity, the registered office is as above and the company is registered in England as registration number 6975921. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users