File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
samples/snippets/csharp/VS_Snippets_CLR/InstallContext_InstallContext/CS Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class InstallContext_Example : Installer
34
34
35
35
public override void Install ( IDictionary mySavedState )
36
36
{
37
+ base . Install ( mySavedState ) ;
37
38
// <Snippet6>
38
39
StringDictionary myStringDictionary = myInstallContext . Parameters ;
39
40
if ( myStringDictionary . Count == 0 )
@@ -61,11 +62,13 @@ public override void Install( IDictionary mySavedState )
61
62
62
63
public override void Uninstall ( IDictionary mySavedState )
63
64
{
65
+ base . Uninstall ( mySavedState ) ;
64
66
// The 'Uninstall' procedure should be added here.
65
67
}
66
68
67
69
public override void Rollback ( IDictionary mySavedState )
68
70
{
71
+ base . Rollback ( mySavedState ) ;
69
72
if ( myInstallContext . IsParameterTrue ( "LogtoConsole" ) == true )
70
73
{
71
74
myInstallContext . LogMessage ( "The 'Rollback' method has been called" ) ;
@@ -76,6 +79,7 @@ public override void Rollback( IDictionary mySavedState )
76
79
77
80
public override void Commit ( IDictionary mySavedState )
78
81
{
82
+ base . Commit ( mySavedState ) ;
79
83
if ( myInstallContext . IsParameterTrue ( "LogtoConsole" ) == true )
80
84
{
81
85
myInstallContext . LogMessage ( "The 'Commit' method has been called" ) ;
You can’t perform that action at this time.
0 commit comments