In the recipe, I want to check if the service is installed, and if it does not notify about the three resources required to install it. I tried a service resource that correctly identifies the service when it is installed, but throws an exception if the service is not installed.
I'm not sure which action to use here: nothing passes the resource so that it will ever be executed, but any other action will be erroneous when they try to act on a service that does not exist.
How to determine if a service is installed and is it based on this information?
I work on Windows if necessary.
source share