Exemple #1
0
        private void InstallationComplete_Shown(object sender, EventArgs e)
        {
            ClientLogger logger = new PersistentClientLogger();

            logger.Log("9-InstallationComplete");

            SendMissingOptionalRequirements(logger);

            ScreenSaver.SetScreenSaverActive(0);

            if (!AppDataSingleton.Instance.Repair)
            {
                // provoke LE, SU
                Process processLE = null;

                ProcessStartInfo startInfoLE = new ProcessStartInfo(AppDataSingleton.Instance.BinariesPath + "\\bin\\OxigenLE.exe", "/n");

                try
                {
                    processLE = Process.Start(startInfoLE);
                }
                catch
                {
                    // ignore
                }

                Process processSU = null;

                ProcessStartInfo startInfoSU = new ProcessStartInfo(AppDataSingleton.Instance.BinariesPath + "\\bin\\OxigenSU.exe", "/n");

                try
                {
                    processSU = Process.Start(startInfoSU);
                }
                catch
                {
                    // suppress all errors
                }

                processLE.WaitForExit();
                processSU.WaitForExit();
            }

            try
            {
                GenericRegistryAccess.DeleteRegistryKey(RegistryBranch.HKLM_LOCAL_MACHINE__SOFTWARE_OxigenRef);
            }
            catch
            {
                // suppress all errors
            }

            ScreenSaver.SetScreenSaver("Oxigen");
            ScreenSaver.SetScreenSaverActive(1);
            ScreenSaver.SetScreenSaverTimeout(180);

            btnExit.Enabled = true;
        }
Exemple #2
0
 private void Form_Shown(object sender, EventArgs e)
 {
     try
     {
         GenericRegistryAccess.DeleteRegistryKey(RegistryBranch.HKLM_LOCAL_MACHINE__SOFTWARE_OxigenRef);
     }
     catch
     {
         // suppress all errors
     }
 }