download a file

Im making a update system, where the game will tell the user that the game has a update.
I’ve done that, and I was just wondering how do you download a ‘exe’ and run it? which will start the update process.

Your best bet would be to use Application.OpenURL ("http://unity3d.com/");

Leave it up to your player to download their .exe. Otherwise, if it were me, I’d not trust some random in-game update. Could easily be a virus.

Hi,

Take a look in the doc for WWW:

using System.Diagnostics;

class Program
{
    static void Main()
    {
        WWW www = new WWW(url);
        yield return www;
	    Process.Start("C:\\");
    }
}

This link may helps you Dotnetperl.com