- Home /
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.
Answer by AndyMartin458 · Jan 29, 2013 at 09:04 AM
Your best bet would be to use Application.OpenURL ("http://unity3d.com/");
http://docs.unity3d.com/Documentation/ScriptReference/Application.OpenURL.html
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.
Answer by Mikilo · Jan 29, 2013 at 09:05 AM
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
How do you start the file you download... Like where would it be located?
You have a good answer above. =D $$anonymous$$ore native to Unity.