Example #1
0
        void UpdateRegistry()
        {
            label1.Text = "Writting registry";
            UninstallInfo ui = new UninstallInfo(Fomm.ProductInfo.GUID);

            ui.SetVersion(Fomm.ProductInfo.Version);
            label1.Text = "All operations complete";
        }
Example #2
0
 void InstallFormShown(object sender, EventArgs e)
 {
     if (!bLegacyMoxShown && UpdateHelper.IsLegacyFommInstalled) {
         string strLegacyFommUninstall = String.Format("{0}\nRun uninstall program?", "");
         if (DialogResult.Yes == MessageBox.Show(strLegacyFommUninstall, "Legacy FOMM is installed", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)) {
             foreach(string id in UpdateHelper.LegacyIDs) {
                 UninstallInfo uiLegacy = new UninstallInfo(id);
                 if (uiLegacy.IsValid) {
                     Process uninstall = new Process();
                     uninstall.StartInfo.FileName = uiLegacy.UninstallString;
                     uninstall.Start();
                     uninstall.WaitForExit();
                     Debug.WriteLine(uninstall.ExitCode.ToString());
                 }
             }
     //					UpdateHelper.UninstallLegacyFomm();
         }
     }
 }
Example #3
0
 void UpdateRegistry()
 {
   label1.Text = "Writting registry";
   UninstallInfo ui = new UninstallInfo(Fomm.ProductInfo.GUID);
   ui.SetVersion(Fomm.ProductInfo.Version);
   label1.Text = "All operations complete";
 }