File tree Expand file tree Collapse file tree 3 files changed +83
-11
lines changed
Expand file tree Collapse file tree 3 files changed +83
-11
lines changed Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Diagnostics ;
3+ using O2 . Kernel ;
4+ using O2 . Kernel . ExtensionMethods ;
5+ using O2 . DotNetWrappers . ExtensionMethods ;
6+ using O2 . XRules . Database . Utils ;
7+
8+ //O2File:Tool_API.cs
9+
10+ namespace O2 . XRules . Database . APIs
11+ {
12+ public class Install_Test
13+ {
14+ public void test ( )
15+ {
16+ new BadAssProxy_Installer ( ) . start ( ) ;
17+ }
18+ }
19+ public class BadAssProxy_Installer : Tool_API
20+ {
21+
22+ public BadAssProxy_Installer ( )
23+ {
24+ config ( "BadAssProxy" ,
25+ "https://gnucitizen.googlecode.com/files/badassproxy-WINNT-0.0.zip" . uri ( ) ,
26+ "binary\\ bap.exe" ) ;
27+ installFromZip_Web ( ) ;
28+ }
29+
30+
31+ public Process start ( )
32+ {
33+ if ( this . isInstalled ( ) )
34+ return this . Executable . startProcess ( ) ;
35+ return null ;
36+ }
37+ }
38+ }
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Diagnostics ;
3+ using O2 . Kernel ;
4+ using O2 . Kernel . ExtensionMethods ;
5+ using O2 . DotNetWrappers . ExtensionMethods ;
6+ using O2 . XRules . Database . Utils ;
7+
8+ //O2File:Tool_API.cs
9+
10+ namespace O2 . XRules . Database . APIs
11+ {
12+ public class Install_Test
13+ {
14+ public void test ( )
15+ {
16+ new Proxify_Installer ( ) . start ( ) ;
17+ }
18+ }
19+ public class Proxify_Installer : Tool_API
20+ {
21+
22+ public Proxify_Installer ( )
23+ {
24+ config ( "Proxify" ,
25+ "https://gnucitizen.googlecode.com/files/proxify-WINNT-1.2.zip" . uri ( ) ,
26+ "proxify.exe" ) ;
27+ installFromZip_Web ( ) ;
28+ }
29+
30+
31+ public Process start ( )
32+ {
33+ if ( this . isInstalled ( ) )
34+ return this . Executable . startProcess ( ) ;
35+ return null ;
36+ }
37+ }
38+ }
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" ?>
2- <H2 >
3- <SourceCode >var command = "help";
4- var powerShell = PowerShell.Create();
5- powerShell.AddCommand(command);
6- return powerShell.Invoke().typeFullName();
7-
8- //using System.Management.Automation
9- //O2Ref:System.Management.Automation.dll</SourceCode >
10- <ReferencedAssemblies />
11- </H2 >
1+ var command = "help";
2+ var powerShell = PowerShell.Create();
3+ powerShell.AddCommand(command);
4+ return powerShell.Invoke();
5+
6+ //using System.Management.Automation
7+ //O2Ref:System.Management.Automation.dll
You can’t perform that action at this time.
0 commit comments