Restores the computer to the state it was in before the installation by rolling back the event log information that the installation procedure wrote to the registry.
- savedState
An IDictionary that contains the pre-installation state of the computer.
The EventLogInstaller.Rollback(IDictionary) method undoes the effects of the EventLogInstaller.Install(IDictionary) method. EventLogInstaller.Rollback(IDictionary) is called if the installation of any component in the installation project fails. The EventLogInstaller.Install(IDictionary) method creates or sets the properties for an event log and event source. EventLogInstaller.Rollback(IDictionary) either deletes the event log and source or resets the properties of a pre-existing source to its pre-installation values.
Typically, you do not call the methods of the System.Diagnostics.EventLogInstaller from within your code; they are generally called only by the Installer Tool (Installutil.exe). The tool calls the EventLogInstaller.Rollback(IDictionary) method, when this or another component has failed to install, to undo any changes that the installation process has already made.
An application's install routine uses the project installer's System.Configuration.Install.Installer.Context property to automatically maintain information about the components that have already been installed. This state information, which is passed to EventLogInstaller.Rollback(IDictionary) as the savedState parameter, is continuously updated as the tool rolls back each System.Diagnostics.EventLogInstaller. Usually, it is not necessary for your code to explicitly modify this state information.