| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Windows.Forms;
 
- namespace VirgoRT_Setup
 
- {
 
-     static class Program
 
-     {
 
-         /// <summary>
 
-         /// The main entry point for the application.
 
-         /// </summary>
 
-         [STAThread]
 
-         static void Main()
 
-         {
 
-             Application.EnableVisualStyles();
 
-             Application.SetCompatibleTextRenderingDefault(false);
 
-             Application.Run(new VirgoRTSetup());
 
-         }
 
-     }
 
-     public partial class VirgoRTSetup : ApplicationContext
 
-     {
 
-         public VirgoRTSetup()
 
-         {
 
-             var exeFilePath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
 
-             exeFilePath = exeFilePath.Substring(0, exeFilePath.LastIndexOf("\\")) + "\\" + "VirgoRT.exe";
 
-             System.IO.FileInfo fi = new System.IO.FileInfo(exeFilePath);
 
-             if (fi.Exists)
 
-             {
 
-                 //if (MessageBox.Show(string.Format("即将运行VirgoRT安装程序,请确认以下信息是否正确:\n\n程序变更号:{0}\n\n请确认是否继续完成安装?", tmVariation), "VirgoRT安装", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
 
-                 System.Diagnostics.Process.Start(exeFilePath);
 
-             }
 
-             else
 
-             {
 
-                 MessageBox.Show(string.Format("Setup fail!"), "VirgoRT Setup", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
-             }
 
-           
 
-             Environment.Exit(0);
 
-         }
 
-     }
 
- }
 
 
  |