From 148e00e0fefdd03e1443ce8d81c3abae99c34272 Mon Sep 17 00:00:00 2001 From: Dru Sellers Date: Tue, 1 May 2012 08:10:15 -0500 Subject: [PATCH] #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. --- src/Topshelf/Hosts/AbstractInstallerHost.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Topshelf/Hosts/AbstractInstallerHost.cs b/src/Topshelf/Hosts/AbstractInstallerHost.cs index ecb92e6b..b01e3b47 100644 --- a/src/Topshelf/Hosts/AbstractInstallerHost.cs +++ b/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);