Direct download & install into iphone/ipad in C#
<p>I want to create a download and install ipa file automatically function in to iphone/ipad in C# ?But i have no idea how to do it.I only use a command way to download the file but it wont install into my iphone/ipad automatically?Is that possible do in C#?</p>

<p>It wrong code just an ideal for it:</p>

<pre><code>    protected void Page_Load(object sender, EventArgs e)
    {
        string filePath = string.Empty;
        string appType = string.Empty;


        //ios
        filePath = "appFile/Apps.ipa";
        appType = "application/octet-stream";

      Response.ClearContent();
      Response.ContentType = MimeType(Path.GetExtension(fName),appType);
      Response.AddHeader("Content-Disposition", string.Format("attachment; filename = {0}",System.IO.Path.GetFileName(fName)));
      Response.AddHeader("Content-Length", sz.ToString("F0"));
      Response.TransmitFile(fName);
      Response.End();


    }
    public static string MimeType(string Extension,string appMineType)
    {
        string mime = appMineType;
        if (string.IsNullOrEmpty(Extension))
            return mime;
        string ext = Extension.ToLower();
        Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(ext);
        if (rk != null &amp;&amp; rk.GetValue("Content Type") != null)
            mime = rk.GetValue("Content Type").ToString();
        return mime;
    }  
</code></pre>
