View Full Version : How to check a Server is available or not during installing process?

10-17-2013, 04:10 AM
We want to download some R package from R Server ( http://cran.r-project.org ) during installing our R plugin.

Now, we hope to check the R server (http://cran.r-project.org) is available or not before we start downloading process.

So anyone have a good suggestion to implement the requirement?

10-17-2013, 12:47 PM
If C# custom action is an option, you can consider using Ping Class (http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx) or HttpWebRequest Class (http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx).