Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Application title is disabled in service applications


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Dec 31, 2015 9:32 AM Last Post By: Remy Lebeau (Te...
Roberto Davila ...

Posts: 1
Registered: 12/28/14
Application title is disabled in service applications  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 31, 2015 2:21 AM
In older versions, I can change title of application in service applications, but now, in Seattle, this option is disabled.

When I go to services.msc to see the service name, it is de name of the TService module.

And the DisplayName in TService module don't do nothing.

How can I change de service title?

Thank you.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Application title is disabled in service applications  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 31, 2015 9:32 AM   in response to: Roberto Davila ... in response to: Roberto Davila ...
Roberto wrote:

When I go to services.msc to see the service name, it is de name
of the TService module.

And the DisplayName in TService module don't do nothing.

This is a known issue in C++Builder only (works fine in Delphi). There is
a DFM streaming bug that breaks that particular property at runtime. See
this discussion:

TService DisplayName does not show in the Service control manager
https://forums.embarcadero.com/message.jspa?messageID=655823

I have already reported it to QualityPortal:

DFM streaming for TService DisplayName property is broken in C++
https://quality.embarcadero.com/browse/RSP-13311

How can I change de service title?

Until the bug is fixed, there is a simple workaround. In the TService::OnBeforeInstall
event, you can manually assign the desired value to the DisplayName property
before the service gets registered with the SCM:

void __fastcall TMyService::ServiceBeforeInstall(TService *Service)
{
    DisplayName = L"My service display name";
}


--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02