How to install Windows.NET service without InstallUtil.exe vb.net

I created a windows service in vb.net. In any case, can I create an installation for it that does not require installutil?

+5
source share
3 answers

Installutil is necessary, but you can create an installation project to make it easier for you to simply run .msi to install the service. (This uses installutil under the hood, but it greatly simplifies installation.)

One step-by-step guide is here: http://support.microsoft.com/kb/816169

And here: http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspx

- . .

, VS2010. , VS2010 .

+9

installutils?

sc, sc create ...

: MSDN: http://support.microsoft.com/?kbid=251192

DESCRIPTION:
        Creates a service entry in the registry and Service Database.
USAGE:
        sc <server> create [service name] [binPath= ] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
      A space is required between the equal sign and the value.
 type= <own|share|interact|kernel|filesys|rec>
       (default = own)
 start= <boot|system|auto|demand|disabled|delayed-auto>
       (default = demand)
 error= <normal|severe|critical|ignore>
       (default = normal)
 binPath= <BinaryPathName>
 group= <LoadOrderGroup>
 tag= <yes|no>
 depend= <Dependencies(separated by / (forward slash))>
 obj= <AccountName|ObjectName>
       (default = LocalSystem)
 DisplayName= <display name>
 password= <password>
+4

.
HKLM\SYSTEM\CurrentControlSet\services

, , - . :

DisplayName= ,

ImagePath= FQ

Start (DWORD) = (3 = )

DelayedAutoStart (DWORD) = (1 = )

WOW64 (DWORD) = (0 = 64- , 1 = 32- )

ErrorControl (DWORD) = 0

ObjectName= {username} to run according to (LocalSystem for the system account)

There are many other meanings, but this should get you started.

+2
source

All Articles