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; }
private static void SetScreensaver() { ScreenSaver.SetScreenSaver("Oxigen"); ScreenSaver.SetScreenSaverActive(1); ScreenSaver.SetScreenSaverTimeout(180); }