mirror of https://github.com/winsw/winsw
Quote the path. See http://www.nabble.com/Windows-Service%3A-Error-193%3A-***-is-not-a-valid-Win32-application.-td24586795.html
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@36 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308faremotes/git-svn
parent
f6dc186164
commit
eef81d98d0
2
Main.cs
2
Main.cs
|
@ -923,7 +923,7 @@ namespace winsw
|
||||||
svc.Create(
|
svc.Create(
|
||||||
d.Id,
|
d.Id,
|
||||||
d.Caption,
|
d.Caption,
|
||||||
ServiceDescriptor.ExecutablePath,
|
"\""+ServiceDescriptor.ExecutablePath+"\"",
|
||||||
WMI.ServiceType.OwnProcess,
|
WMI.ServiceType.OwnProcess,
|
||||||
ErrorControl.UserNotified,
|
ErrorControl.UserNotified,
|
||||||
StartMode.Automatic,
|
StartMode.Automatic,
|
||||||
|
|
Loading…
Reference in New Issue