Example #1
0
        public bool UninstallMod()
        {
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
            }
            bool retVal = true;

            //First make sure that it is not active.  Must b
            if (string.IsNullOrEmpty(InstalledPath))
            {
                SetInstalledPath();
            }
            if (ActiveModConfigurations.Instance.Configurations.Contains(this))
            {
                retVal = false;
            }
            else
            {
                Locations.DeleteAllFiles(InstalledPath);
            }
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
            }
            return(retVal);
        }