@@ -17,29 +17,39 @@ public class CustomActions
1717 // Specify or calculate the total number of ticks the custom action adds to the length of the ProgressBar
1818 public const uint TotalTicks = TickIncrement * NumberItems ;
1919 private const uint NumberItems = 100 ;
20+
2021 private const string PowerShellFilesElevatedDeferredProperty = "PowerShellFilesElevatedDeferred" ;
2122 private const string PowerShellFilesDeferredProperty = "PowerShellFilesDeferred" ;
2223 private const string PowerShellScriptsElevatedDeferredProperty = "PowerShellScriptsElevatedDeferred" ;
2324 private const string PowerShellScriptsDeferredProperty = "PowerShellScriptsDeferred" ;
2425
26+ private const string PowerShellFilesElevatedUninstallDeferredProperty = "PowerShellFilesElevatedUninstallDeferred" ;
27+ private const string PowerShellFilesUninstallDeferredProperty = "PowerShellFilesUninstallDeferred" ;
28+ private const string PowerShellScriptsElevatedUninstallDeferredProperty = "PowerShellScriptsElevatedUninstallDeferred" ;
29+ private const string PowerShellScriptsUninstallDeferredProperty = "PowerShellScriptsUninstallDeferred" ;
30+
2531 [ CustomAction ]
2632 public static ActionResult PowerShellFilesImmediate ( Session session )
2733 {
34+ session . Log ( "PowerShellFilesImmediate start" ) ;
35+
2836 return FilesImmediate ( session , 0 , PowerShellFilesDeferredProperty ) ;
2937 }
3038
3139 [ CustomAction ]
32- public static ActionResult PowerShellFilesElevatedImmediate ( Session session )
40+ public static ActionResult PowerShellFilesDeferred ( Session session )
3341 {
34- return FilesImmediate ( session , 1 , PowerShellFilesElevatedDeferredProperty ) ;
42+ session . Log ( "PowerShellFilesDeferred start" ) ;
43+
44+ return FilesDeferred ( session , PowerShellFilesDeferredProperty ) ;
3545 }
3646
3747 [ CustomAction ]
38- public static ActionResult PowerShellFilesDeferred ( Session session )
48+ public static ActionResult PowerShellFilesElevatedImmediate ( Session session )
3949 {
40- session . Log ( "PowerShellFilesDeferred start" ) ;
50+ session . Log ( "PowerShellFilesElevatedImmediate start" ) ;
4151
42- return FilesDeferred ( session , PowerShellFilesDeferredProperty ) ;
52+ return FilesImmediate ( session , 1 , PowerShellFilesElevatedDeferredProperty ) ;
4353 }
4454
4555 [ CustomAction ]
@@ -51,29 +61,103 @@ public static ActionResult PowerShellFilesElevatedDeferred(Session session)
5161 }
5262
5363 [ CustomAction ]
54- public static ActionResult PowerShellScriptsImmediate ( Session session )
64+ public static ActionResult PowerShellFilesUninstall ( Session session )
5565 {
56- return ScriptsImmediate ( session , 0 , PowerShellScriptsDeferredProperty ) ;
66+ session . Log ( "PowerShellFilesUninstall start" ) ;
67+
68+ return FilesImmediate ( session , 0 , PowerShellFilesUninstallDeferredProperty ) ;
5769 }
5870
71+
5972 [ CustomAction ]
60- public static ActionResult PowerShellScriptsElevatedImmediate ( Session session )
73+ public static ActionResult PowerShellFilesUninstallDeferred ( Session session )
6174 {
62- return ScriptsImmediate ( session , 1 , PowerShellScriptsElevatedDeferredProperty ) ;
75+ session . Log ( "PowerShellFilesUninstallDeferred start" ) ;
76+
77+ return FilesDeferred ( session , PowerShellFilesUninstallDeferredProperty ) ;
78+ }
79+
80+
81+ [ CustomAction ]
82+ public static ActionResult PowerShellFilesElevatedUninstall ( Session session )
83+ {
84+ session . Log ( "PowerShellFilesElevatedUninstall start" ) ;
85+
86+ return FilesImmediate ( session , 1 , PowerShellFilesElevatedUninstallDeferredProperty ) ;
87+ }
88+
89+ [ CustomAction ]
90+ public static ActionResult PowerShellFilesElevatedUninstallDeferred ( Session session )
91+ {
92+ session . Log ( "PowerShellFilesElevatedUninstallDeferred start" ) ;
93+
94+ return FilesDeferred ( session , PowerShellFilesElevatedUninstallDeferredProperty ) ;
95+ }
96+
97+ [ CustomAction ]
98+ public static ActionResult PowerShellScriptsImmediate ( Session session )
99+ {
100+ session . Log ( "PowerShellScriptsImmediate start" ) ;
101+
102+ return ScriptsImmediate ( session , 0 , PowerShellScriptsDeferredProperty ) ;
63103 }
64104
65105 [ CustomAction ]
66106 public static ActionResult PowerShellScriptsDeferred ( Session session )
67107 {
108+ session . Log ( "PowerShellScriptsDeferred start" ) ;
109+
68110 return ScriptsDeferred ( session , PowerShellScriptsDeferredProperty ) ;
69111 }
70112
113+ [ CustomAction ]
114+ public static ActionResult PowerShellScriptsElevatedImmediate ( Session session )
115+ {
116+ session . Log ( "PowerShellScriptsElevatedImmediate start" ) ;
117+
118+ return ScriptsImmediate ( session , 1 , PowerShellScriptsElevatedDeferredProperty ) ;
119+ }
120+
71121 [ CustomAction ]
72122 public static ActionResult PowerShellScriptsElevatedDeferred ( Session session )
73123 {
124+ session . Log ( "PowerShellScriptsElevatedDeferred start" ) ;
125+
74126 return ScriptsDeferred ( session , PowerShellScriptsElevatedDeferredProperty ) ;
75127 }
76128
129+ [ CustomAction ]
130+ public static ActionResult PowerShellScriptsUninstall ( Session session )
131+ {
132+ session . Log ( "PowerShellScriptsUninstall start" ) ;
133+
134+ return ScriptsImmediate ( session , 0 , PowerShellScriptsUninstallDeferredProperty ) ;
135+ }
136+
137+ [ CustomAction ]
138+ public static ActionResult PowerShellScriptsUninstallDeferred ( Session session )
139+ {
140+ session . Log ( "PowerShellScriptsUninstallDeferred start" ) ;
141+
142+ return ScriptsDeferred ( session , PowerShellScriptsUninstallDeferredProperty ) ;
143+ }
144+
145+ [ CustomAction ]
146+ public static ActionResult PowerShellScriptsElevatedUninstall ( Session session )
147+ {
148+ session . Log ( "PowerShellScriptsElevatedUninstall start" ) ;
149+
150+ return ScriptsImmediate ( session , 1 , PowerShellScriptsElevatedUninstallDeferredProperty ) ;
151+ }
152+
153+ [ CustomAction ]
154+ public static ActionResult PowerShellScriptsElevatedUninstallDeferred ( Session session )
155+ {
156+ session . Log ( "PowerShellScriptsElevatedUninstallDeferred start" ) ;
157+
158+ return ScriptsDeferred ( session , PowerShellScriptsElevatedUninstallDeferredProperty ) ;
159+ }
160+
77161 [ Serializable ]
78162 public class ScriptActionData
79163 {
0 commit comments