Enhancing Operations Through IServiceConfigurationMethod

Enhancing Operations Through IServiceConfigurationMethod

Kenneth Lv8

Enhancing Operations Through IServiceConfigurationMethod

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

IServiceConfigureOperation

Declaration

IServiceConfigureOperation : IBaseServiceOperation

Overview

This interface is meant to edit service configure operation properties. A service Configure Operation allows you to modify the settings a service that is already installed or being installed by the current package.

Properties

Bool ConfigureOnInstall - Gets or sets the configure option during component’s installation.

Bool ConfigureOnUninstall - Gets or sets the configure option during component’s uninstallation.

Bool ConfigureOnReinstall - Gets or sets the configure option during component’s reinstallation.

String SettingToChange - Gets or sets which setting will be changed. Supported values: “DelayAutoStart”, “TimeToRunFailureActions”, “AddSidToProcessToken”, “AddPrivileges”, “TimeInMilisecToWaitBeforeOtherShutdownOperations”.
“DelayAutoStart” is applied only on auto-start services or services installed by the package configured with “Automatic” StartType.
The specified change takes effect next time the system is started.

String SettingsValue - Gets or sets the setting value that will be applied.
The setting value depends on theSettingToChange property value:

  • “DelayAutoStart”
    - “0” turn off auto-start service delay
    - “1” start the service after other auto-start services plus a time delay
  • “TimeToRunFailureActions”
    - “0” run failure actions only if the service terminates without reporting SERVICE_STOPPED
    - “1” run failure actions only if the service terminates reporting SERVICE_STOPPED
  • “AddSidToProcessToken”
    - “0” SERVICE_SID_TYPE_NONE
    - “1” SERVICE_SID_TYPE_UNRESTRICTED
    - “2” SERVICE_SID_TYPE_RESTRICTED
  • “AddPrivileges”
    The list of privileges required by the service. The privileges must be separated by [~]. Use privilege constant name from Microsoft documentation . Example: “SeCreateTokenPrivilege[~]SeIncreaseQuotaPrivilege[~]SeSecurityPrivilege[~]SeLoadDriverPrivilege[~]SeSystemProfilePrivilege[~]SeIncreaseBasePriorityPrivilege”

See also

IMergeModule

IProductDetails

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Enhancing Operations Through IServiceConfigurationMethod
  • Author: Kenneth
  • Created at : 2024-11-23 18:04:55
  • Updated at : 2024-11-30 20:37:34
  • Link: https://fox-sys.techidaily.com/enhancing-operations-through-iserviceconfigurationmethod/
  • License: This work is licensed under CC BY-NC-SA 4.0.