Supressing Windows Alerts Programmatically
<p>In one of my applications I have the requirement to extract resources from a DLL. I'm doing this by using the command line version of a freeware tool I found <a href="http://www.nirsoft.net/utils/resources_extract.html" rel="nofollow">here</a>.</p>

<p>It works fine, but the problem I'm seeing is that since the freeware tool isn't digitally signed, Windows throws an alert everytime I call it from my application <em>'Are you sure you want to run this program etc.</em>'.</p>

<p>Is there anyway I can supress this alert? I'm doing nothing special to call the application, my code is below.</p>

<pre><code>ProcessStartInfo pInfo = new ProcessStartInfo();
pInfo.FileName = "ResourcesExtract.exe";
pInfo.CreateNoWindow = true;
pInfo.Arguments = "/Source " + "\"" + filePath + "\"" + " /DestFolder " + "\"" + outputDirectory + "\"";

Process extractProcess = new Process();
extractProcess.StartInfo = pInfo;

extractProcess.Start();
extractProcess.WaitForExit();
</code></pre>

<p>Any help or ideas on how I can supress this alert or an alternative to this solution would be appreciated.</p>

<p>Thanks.</p>
