how to start a process as user then elevate in c# ASP.NET
<p>I am working on a web application that install software on a server.</p>

<p>I can run the install by hand if I log in a user that is apart of a specific group then run install msi as administrator.</p>

<p>This specific group is apart of the local administrators group.</p>

<p>My app pool is running as Network_Service.</p>

<p>Do I impersonate then use the runAs verb? but then I need to know the u/p as user and u/p of Administrator .. I think</p>

<p>I am using the System.Diagnostics.Process classes.</p>

<pre><code>       System.Diagnostics.ProcessStartInfo oInfo = new System.Diagnostics.ProcessStartInfo(str);
        oInfo.UseShellExecute = false;
        oInfo.ErrorDialog = false;
        oInfo.CreateNoWindow = false;
        oInfo.RedirectStandardOutput = true;


        Process p = System.Diagnostics.Process.Start(oInfo);

        System.IO.StreamReader oReader2 = p.StandardOutput;
        string sRes = oReader2.ReadToEnd();
        oReader2.Close();
    return sRes;
</code></pre>
