-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Fixed pathing bugs with loading assemblies
-Added proper service support to SEServerExtender -Added service installer to SEServerExtender
- Loading branch information
1 parent
c17d650
commit ef3e4bb
Showing
6 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Configuration.Install; | ||
using System.Linq; | ||
using System.ServiceProcess; | ||
using System.Text; | ||
|
||
namespace SEServerExtender | ||
{ | ||
[RunInstaller(true)] | ||
public class WindowsServiceInstaller : Installer | ||
{ | ||
private ServiceInstaller serviceInstaller; | ||
private ServiceProcessInstaller processInstaller; | ||
|
||
public WindowsServiceInstaller() | ||
{ | ||
processInstaller = new ServiceProcessInstaller(); | ||
serviceInstaller = new ServiceInstaller(); | ||
|
||
processInstaller.Account = ServiceAccount.LocalSystem; | ||
serviceInstaller.StartType = ServiceStartMode.Manual; | ||
serviceInstaller.ServiceName = "SEServerExtender"; | ||
serviceInstaller.Description = "Service for running SEServerExtender"; | ||
|
||
Installers.Add(serviceInstaller); | ||
Installers.Add(processInstaller); | ||
} | ||
} | ||
} |