111,119
社区成员
发帖
与我相关
我的任务
分享
try
{
System.Diagnostics.Process.Start("update.exe", GlobParams.baseURL);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
double NewVer = Convert.ToDouble(new BLL.SYS_UpdateManager().GetNewVer());
double CurrVer = Convert.ToDouble(allensingleton.currentlyVersion);
if (NewVer > CurrVer)
{
DialogResult dr = MessageBox.Show("发现新的版本是否要更新该软件?", "系统提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
if (dr == DialogResult.OK)
{
Process.Start(@"C:\Program Files\CMS\MesUpdate.exe");
this.Dispose();
this.Close();
}
}