Exemplo n.º 1
0
 public void Install_Should_Install_When_Provide_ServiceName_Only()
 {
     var cfg = new InstallConfig("MyService");
     var path = @"C:\Users\Ricky\My Projects\Baki\src\Samples\Kakatua\bin\Debug\Kakatua.exe";
     var svc = new WindowsServiceSelfService(cfg, path);
     svc.Install();
 }
Exemplo n.º 2
0
        public void Install_Should_Install()
        {
            var cfg = new InstallConfig("MyService")
                          {
                              DisplayName = "My DisplayName",
                              Description = "My Description",
                              Account = ServiceAccount.LocalSystem
                          };
            var path = @"C:\Users\Ricky\My Projects\Baki\src\Samples\Kakatua\bin\Debug\Kakatua.exe";
            var svc = new WindowsServiceSelfService(cfg, path);
            svc.Install();

            svc.Uninstall();
        }
Exemplo n.º 3
0
 public WindowsServiceSelfService(InstallConfig config, string assemblyPath)
 {
     _config = config;
     _controller = GetServiceController(config.ServiceName);
     _assemblyPath = assemblyPath ?? GetAssemblyPath();
 }
Exemplo n.º 4
0
 public WindowsServiceSelfService(InstallConfig config)
     : this(config, null)
 {
 }
Exemplo n.º 5
0
 public InteractiveCommandService(InstallConfig config)
     : this(new WindowsServiceSelfService(config))
 { }
Exemplo n.º 6
0
 public InstallerConfigurator(InstallConfig config)
 {
     _config = config;
 }