try
{
//安装完成后启动服务管理程序
RunProcess rp = new RunProcess();
rp.Run("net", "start S3SvcWatcher");
if (rp.HasError)
{
throw new RuntimeException(rp.Error);
}
}
catch (Exception ex)
{
MessageBox.Show(null, ex.Message + "(请手动启动服务S3SvcWatcher或者重新启动计算机)",
"Start Service Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}