From eef81d98d025f8db893d19e59bc63774be185150 Mon Sep 17 00:00:00 2001 From: kohsuke_kawaguchi Date: Wed, 22 Jul 2009 00:07:53 +0000 Subject: [PATCH] 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-dc31b0e308fa --- Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Main.cs b/Main.cs index c15aa83..415c7aa 100644 --- a/Main.cs +++ b/Main.cs @@ -923,7 +923,7 @@ namespace winsw svc.Create( d.Id, d.Caption, - ServiceDescriptor.ExecutablePath, + "\""+ServiceDescriptor.ExecutablePath+"\"", WMI.ServiceType.OwnProcess, ErrorControl.UserNotified, StartMode.Automatic,