protected override void DownloadAndDeploy(string target)
{
var tempInstaller = Path.GetTempFileName() + ".exe";
using (var client = new WebClient())
{
client.DownloadFile(Url, tempInstaller);
log.DebugFormat("Installing downloaded package to {0}", target);
var process = System.Diagnostics.Process.Start(tempInstaller, GetInstallerArguments(target));
if (process == null)
throw new InvalidOperationException("Could not start tool installer");
process.WaitForExit();
log.DebugFormat("Installation completed");
}
}