/// <summary> /// Performs a basic install of the mod. /// </summary> /// <remarks> /// A basic install installs all of the file in the mod to the Data directory /// or activates all esp and esm files. /// </remarks> /// <returns><c>true</c> if the installation succeed; /// <c>false</c> otherwise.</returns> public bool PerformBasicInstall() { bool booSuccess = false; try { new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Assert(); BasicInstallTask bitTask = new BasicInstallTask(Mod, GameMode, Installers.FileInstaller, Installers.PluginManager, EnvironmentInfo.Settings.SkipReadmeFiles, null); OnTaskStarted(bitTask); booSuccess = bitTask.Execute(); } finally { PermissionSet.RevertAssert(); } return(booSuccess); }
/// <summary> /// Performs a basic install of the mod. /// </summary> /// <remarks> /// A basic install installs all of the file in the mod to the Data directory /// or activates all esp and esm files. /// </remarks> /// <returns><c>true</c> if the installation succeed; /// <c>false</c> otherwise.</returns> public bool PerformBasicInstall() { bool booSuccess = false; try { new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Assert(); BasicInstallTask bitTask = new BasicInstallTask(Mod, GameMode, Installers.FileInstaller, Installers.PluginManager, EnvironmentInfo.Settings.SkipReadmeFiles, null); OnTaskStarted(bitTask); booSuccess = bitTask.Execute(); } finally { PermissionSet.RevertAssert(); } return booSuccess; }