NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Installer.Commit

Completes the install transaction.

[Visual Basic]
Overridable Public Sub Commit( _
   ByVal savedState As IDictionary _
)
[C#]
public virtual void Commit(
   IDictionary savedState
);
[C++]
public: virtual void Commit(
   IDictionary* savedState
);
[JScript]
public function Commit(
   savedState : IDictionary
);

Parameters

savedState
An IDictionary that contains the state of the machine after all of the installers in this instance's InstallerCollection have run. This information is used to perform the Commit operation. Also, you can store any information you might need to do a correct Uninstall.

Exceptions

Exception Type Condition
ArgumentException savedState is a null reference (in Visual Basic Nothing)

-or-

The saved state IDictionary may have been corrupted.

Remarks

This method will be called only if the Install methods of all installers in this instance's InstallerCollection succeed. It calls the Commit method of each installer in the collection.

Notes to Inheritors: If you override the Commit method in a derived class, be sure to call the base class's Commit method.

See Also

Installer Class | Installer Members | System.Configuration.Install Namespace | Install | Uninstall | Rollback | InstallerCollection | Installers