Example #1
0
        /// <summary>
        /// Return where the KWM is installed on the file system, backslash-terminated..
        /// </summary>
        public static String GetKwmInstallationPath()
        {
            string defaultVal = @"c:\program files\teambox\Teambox Manager";

            RegistryKey kwmKey = null;

            try
            {
                kwmKey = Base.GetKwmLMRegKey();
                return((String)kwmKey.GetValue("InstallDir", defaultVal) + "\\");
            }
            catch (Exception ex)
            {
                Logging.LogException(ex);
                return(defaultVal);
            }
            finally
            {
                if (kwmKey != null)
                {
                    kwmKey.Close();
                }
            }
        }