diff --git a/src/Topshelf/Hosts/AbstractInstallerHost.cs b/src/Topshelf/Hosts/AbstractInstallerHost.cs index a2a0b142..4c45fed4 100644 --- a/src/Topshelf/Hosts/AbstractInstallerHost.cs +++ b/src/Topshelf/Hosts/AbstractInstallerHost.cs @@ -108,6 +108,12 @@ Installer CreateInstaller() if (_description.InstanceName.IsNotEmpty()) 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); + var installer = new HostInstaller(_description, arguments, installers); return installer;