Dynamic Variable used Step template Missing Quotes

I have a dynamic variable that is filled in for each project:
Service Display Name: Test Service

This is then picked up by a step template using:

When running the Windows Service startup step, the Display Name does not not have quotes around it and the command fails.

sc.exe config “MyTestService” binPath=“C:\Path\testService.exe” DisplayName= Test Service depend= “serviceB” start= “delayed-auto”

How do I change the variable or step template to have the command use double quotes around the DisplayName?

Hi @lkorhone ,

Thanks for getting in touch! You can either put the quotes into the variable value (i.e. the value would be "Test Service"), or in the sc.exe command itself (which would need to look something like DisplayName= '"$ServiceDisplayName"'). This change to the command can be done in the source code of the step itself in your web portal under Library > Step Templates > [Step Template Name]. If you’re editing the community step template itself (not a copy of it), you would then need to make a copy and then add that copied step into your project. :slight_smile:

I hope this helps! Let me know how you go or if you have any questions or concerns moving forward.

Best regards,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.