static void Main() { HHT_Registry registry = new HHT_Registry(); if (!registry.GetRegistroInstalled()) { Application.Run(new FrmBase()); } }
private void btnInstall_Click(object sender, EventArgs e) { lbITems.Items.Clear(); HHT_Directory directory = new HHT_Directory(); directory.Message += new HHT_BASE.EventHandler(dir_Message); HHT_Registry registry = new HHT_Registry(); registry.Message += new HHT_BASE.EventHandler(dir_Message); registry.GetRegistro(); directory.CreateFolder(); directory.CopyFile(); directory.RunCAB(); Thread.Sleep(3000); registry.GetRegistroGood(); HHT_Helper.Reset(); }