mcuser
Posts: 13
Joined: Mon Jan 17, 2011 9:30 pm

Detect Service Disabled (or not)

Hi,

I am aware that I can detect if a service is started or not (http://www.advancedinstaller.com/user-g ... rvice.html).

I am not sure this would work in my use case though, since what I really want to know is if the "Net. Tcp Port Sharing Service" (NetTcpPortSharing) service is NOT disabled. That service is not always "started", but it doesn't matter, since it will start on demand. It is only a problem if it is disabled (which is the default state for most installation of Windows Server 2003, 2008 & 2012).

So in other words, what I try to get is the "Startup type" property of a service.

Is there any way to do this, or a workaround to test the "Net. Tcp Port Sharing" feature?

Thank you.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Detect Service Disabled (or not)

Hi,

In order to achieve what you want you can go in the Search page and create a registry search for the following registry entry:

Code: Select all

HKLM\System\CurrentControlSet\Services\<ServiceName>\Start
The "Start" registry value has the following meaning: "2" (for automatic), "3" (for manual) or "4" (for disabled)

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”