This seems to be a common issue with various solutions available on this forum. I have read them all but still struggling to find the best/correct way to approach this.
I have an AI project which has multiple instances enabled. Each instance installs a windows service with a service name that is named based on a property value to make it relative to the instance installed.
When I remove an instance or even the default instance, the service doesn't delete on uninstall. If I stop the service prior to uninstall, the application uninstalls correctly.
So I need to figure out how to stop a service which is named based on a property value. I have the Service Operation set to STOP and DELETE on uninstall but clearly this is not working.
Any help appreciated as I have been looking at this for a while and cannot progress.... :-0