// Handle any unhandled exceptions\r
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;\r
\r
- // Attempt to upgrade / keep the users settings between versions\r
- if (Settings.Default.UpdateRequired)\r
- {\r
- Settings.Default.Upgrade();\r
- // Reset some settings\r
- Settings.Default.UpdateRequired = false;\r
- Settings.Default.CliExeHash = null;\r
- Settings.Default.hb_build = 0;\r
- Settings.Default.hb_platform = null;\r
- Settings.Default.hb_version = null;\r
-\r
- // Re-detect the CLI version data.\r
- Functions.Main.SetCliVersionData();\r
- }\r
-\r
- // Make sure we have any pre-requesits before trying to launch\r
+ // Check that HandBrakeCLI is availabl.\r
string failedInstall = "HandBrake is not installed properly. Please reinstall HandBrake. \n\n";\r
string missingFiles = string.Empty;\r
\r
return;\r
}\r
\r
+ // Attempt to upgrade / keep the users settings between versions\r
+ if (Settings.Default.UpdateRequired)\r
+ {\r
+ Settings.Default.Upgrade();\r
+ // Reset some settings\r
+ Settings.Default.UpdateRequired = false;\r
+ Settings.Default.CliExeHash = null;\r
+ Settings.Default.hb_build = 0;\r
+ Settings.Default.hb_platform = null;\r
+ Settings.Default.hb_version = null;\r
+\r
+ // Re-detect the CLI version data.\r
+ Functions.Main.SetCliVersionData();\r
+ }\r
+\r
// Check were not running on a screen that's going to cause some funnies to happen.\r
Screen scr = Screen.PrimaryScreen;\r
if ((scr.Bounds.Width < 1024) || (scr.Bounds.Height < 620))\r