Browse Source

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
kohsuke_kawaguchi 16 years ago
parent
commit
eef81d98d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Main.cs

+ 1 - 1
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,