示例#1
0
 /// <summary>
 /// Removes an installation.
 /// </summary>
 /// <param name="savedState">
 /// An IDictionary used to save information needed to perform a commit, rollback, or uninstall operation.
 /// </param>
 public override void Uninstall(System.Collections.IDictionary savedState)
 {
     LicenseFile.Uninstall();
     FileNames.DeleteKeys();
     ManifestManagement.DeleteDeployManifest();
     base.Uninstall(savedState);
 }
示例#2
0
 /// <summary>
 /// When overridden in a derived class, restores the pre-installation state of the computer.
 /// </summary>
 /// <param name="savedState">An <see cref="T:System.Collections.IDictionary"/> that contains the pre-installation state of the computer.</param>
 /// <exception cref="T:System.ArgumentException">
 /// The <paramref name="savedState"/> parameter is null.
 /// -or-
 /// The saved-state <see cref="T:System.Collections.IDictionary"/> might have been corrupted.
 /// </exception>
 /// <exception cref="T:System.Configuration.Install.InstallException">
 /// An exception occurred during the <see cref="M:System.Configuration.Install.Installer.Rollback(System.Collections.IDictionary)"/> phase
 /// of the installation. This exception is ignored and the rollback continues.
 /// However, the computer might not be fully reverted to its initial state after the rollback completes.
 /// </exception>
 public override void Rollback(IDictionary savedState)
 {
     LicenseFile.Uninstall();
     FileNames.DeleteKeys();
     ManifestManagement.DeleteDeployManifest();
     base.Rollback(savedState);
 }