Skip to content

Commit 8bb37c3

Browse files
author
Asugakoisi
authored
Update installcontext_installcontext.cs (#4047)
1 parent 92db21e commit 8bb37c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/snippets/csharp/VS_Snippets_CLR/InstallContext_InstallContext/CS/installcontext_installcontext.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class InstallContext_Example : Installer
3434

3535
public override void Install( IDictionary mySavedState )
3636
{
37+
base.Install( mySavedState );
3738
// <Snippet6>
3839
StringDictionary myStringDictionary = myInstallContext.Parameters;
3940
if( myStringDictionary.Count == 0 )
@@ -61,11 +62,13 @@ public override void Install( IDictionary mySavedState )
6162

6263
public override void Uninstall( IDictionary mySavedState )
6364
{
65+
base.Uninstall( mySavedState );
6466
// The 'Uninstall' procedure should be added here.
6567
}
6668

6769
public override void Rollback( IDictionary mySavedState )
6870
{
71+
base.Rollback( mySavedState );
6972
if( myInstallContext.IsParameterTrue( "LogtoConsole" ) == true )
7073
{
7174
myInstallContext.LogMessage( "The 'Rollback' method has been called" );
@@ -76,6 +79,7 @@ public override void Rollback( IDictionary mySavedState )
7679

7780
public override void Commit( IDictionary mySavedState )
7881
{
82+
base.Commit( mySavedState );
7983
if( myInstallContext.IsParameterTrue( "LogtoConsole" ) == true )
8084
{
8185
myInstallContext.LogMessage( "The 'Commit' method has been called" );

0 commit comments

Comments
 (0)