Performs a standard mod installation.
A basic install installs all of the files in the mod to the installation directory, and activates all plugin files.
Inheritance: ThreadedBackgroundTask
Example #1
0
        /// <summary>
        /// Runs the basic install script.
        /// </summary>
        /// <remarks>
        /// A basic install installs all of the files in the mod to the installation directory,
        /// and activates all plugin files.
        /// </remarks>
        /// <param name="p_mfiFileInstaller">The file installer to use.</param>
        /// <param name="p_rolActiveMods">The list of active mods.</param>
        /// <param name="p_dicInstallFiles">The list of specific files to install, if null the mod will be installed as usual.</param>
        /// <returns><c>true</c> if the installation was successful;
        /// <c>false</c> otherwise.</returns>
        protected bool RunBasicInstallScript(IModFileInstaller p_mfiFileInstaller, ReadOnlyObservableList <IMod> p_rolActiveMods, List <KeyValuePair <string, string> > p_dicInstallFiles)
        {
            BasicInstallTask bitTask = new BasicInstallTask(Mod, GameMode, p_mfiFileInstaller, PluginManager, VirtualModActivator, EnvironmentInfo.Settings.SkipReadmeFiles, p_rolActiveMods, p_dicInstallFiles);

            OnTaskStarted(bitTask);
            return(bitTask.Execute());
        }
Example #2
0
		/// <summary>
		/// Runs the basic install script.
		/// </summary>
		/// <remarks>
		/// A basic install installs all of the files in the mod to the installation directory,
		/// and activates all plugin files.
		/// </remarks>
		/// <param name="p_mfiFileInstaller">The file installer to use.</param>
		/// <param name="p_rolActiveMods">The list of active mods.</param>
		/// <returns><c>true</c> if the installation was successful;
		/// <c>false</c> otherwise.</returns>
		protected bool RunBasicInstallScript(IModFileInstaller p_mfiFileInstaller, ReadOnlyObservableList<IMod> p_rolActiveMods)
		{
			BasicInstallTask bitTask = new BasicInstallTask(Mod, GameMode, p_mfiFileInstaller, PluginManager, EnvironmentInfo.Settings.SkipReadmeFiles, p_rolActiveMods);
			OnTaskStarted(bitTask);
			return bitTask.Execute();
		}