public static LauncherRegistoryInfo GetLauncherRegistoryInfo()
        {
            var executable = RegistoryManager.GetRegistory(subKey, executableKey, RegistryHive.LocalMachine, RegistryView.Registry32);
            var rootPath   = RegistoryManager.GetRegistory(subKey, rootPathKey, RegistryHive.LocalMachine, RegistryView.Registry32);
            var icon       = RegistoryManager.GetRegistory(subKey, iconKey, RegistryHive.LocalMachine, RegistryView.Registry32);

            var regInfo = new LauncherRegistoryInfo()
            {
                Executable = executable,
                RootPath   = rootPath,
                Icon       = icon
            };

            return(regInfo);
        }
 public static void SetLauncherRegistoryInfo(LauncherRegistoryInfo regInfo)
 {
     RegistoryManager.SetRegistory(subKey, executableKey, RegistryHive.LocalMachine, RegistryView.Registry32, regInfo.Executable);
     RegistoryManager.SetRegistory(subKey, rootPathKey, RegistryHive.LocalMachine, RegistryView.Registry32, regInfo.RootPath);
     RegistoryManager.SetRegistory(subKey, iconKey, RegistryHive.LocalMachine, RegistryView.Registry32, regInfo.Icon);
 }