Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur

16 Ekim 2012 Salı

SC ile Windows Servisi Yükleme (installUtil olmayınca)

Benim tercihim installutil.exe ama yoksa yapacak tek şey var o da sc kullanmak.
Yardımı şöyle:


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

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>


Önemli nokta her = işaretinden sonra boşluk bırakılması ve eğer dosya yolunuzda boşluk karakteri varsa dosya yolunuzu çift tırnak içine almanız.

Az önce yaptığım basitçe örneğim:

C:\Users\cem.topkaya\Documents\Visual Studio 2010\Projects\serviceOtomatikDeneme
\bin\Debug>sc create FMCDeneme binpath= "C:\Users\cem.topkaya\Documents\Visual Studio 2010\Projects\serviceOtomatikDeneme\bin\Debug\serviceOtomatikDeneme.exe"


Daha güzel anlatım: www.wsinnovations.com