Permalink
Browse files

#93 Fix mix/matched argument flags.

This relates to issue #93 where it was discovered we weren't quoting
the instance name or service name of the parameters passed to
us from the command line. This quotes those values that are passed to
the lib.
  • Loading branch information...
1 parent e34dbd5 commit 148e00e0fefdd03e1443ce8d81c3abae99c34272 @drusellers drusellers committed May 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Topshelf/Hosts/AbstractInstallerHost.cs
@@ -106,13 +106,13 @@ Installer CreateInstaller()
string arguments = " ";
if (_description.InstanceName.IsNotEmpty())
- arguments += " -instance:{0}".FormatWith(_description.InstanceName);
+ arguments += " -instance \"{0}\"".FormatWith(_description.InstanceName);
if (_description.DisplayName.IsNotEmpty())
arguments += " -displayname \"{0}\"".FormatWith(_description.DisplayName);
if (_description.Name.IsNotEmpty())
- arguments += " -servicename:{0}".FormatWith(_description.Name);
+ arguments += " -servicename \"{0}\"".FormatWith(_description.Name);
var installer = new HostInstaller(_description, arguments, installers);

0 comments on commit 148e00e

Please sign in to comment.