Setting service options in code.

delphi package - automated exception handling
Post Reply
Raoul
Posts: 1
Joined: Mon Dec 14, 2020 3:59 pm

Setting service options in code.

Post by Raoul »

Hi,

I looked at this post to enable NT Service settings for my service:
viewtopic.php?f=4&t=5237

However, I am using a combo Service/App application, it starts as an app with a parameter.

How can I make these settings in code?

Thansk
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Setting service options in code.

Post by madshi »

Here is the documentation:

http://help.madshi.net/MESettings.htm

Basically in your code you can do (e.g. in your project initialization) do things like:

Code: Select all

with MESettings() do
begin
  SomeSetting := 'new value';
  SomeOtherSetting := 777;
end;
To be more specific, for service you probably want to change "GeneralShowSetting := ssNothing" and "AutoSave := true".
Post Reply