This.Committing += new InstallEventHandler(MyInstaller_Committing) This.Committed += new InstallEventHandler(MyInstaller_Committed) Virtual void Rollback( IDictionary^ savedState ) overrideĬonsole::WriteLine( "Usage : installutil.exe Installer.exe " ) Virtual void Commit( IDictionary^ savedState ) override Virtual void Install( IDictionary^ savedState ) override This->Committing += gcnew InstallEventHandler( this, &MyInstallerClass::MyInstaller_Committing ) This->Committed += gcnew InstallEventHandler( this, &MyInstallerClass::MyInstaller_Committed ) Void MyInstaller_Committed( Object^ sender, InstallEventArgs^ e )Ĭonsole::WriteLine( "Committed Event occurred." ) Void MyInstaller_Committing( Object^ sender, InstallEventArgs^ e )Ĭonsole::WriteLine( "Committing Event occurred." ) Ref class MyInstallerClass: public Installer Using namespace System::Configuration::Install To use the Installer class, you must reference the assembly in your project. When Commit is about to complete, Committing event occurs and a message is displayed. It creates a class which inherits from Installer. The following example demonstrates the use of the Installer class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |