Install Windows service with failure configuration

I want to specify the failure configuration using sc.exe’s failure option. How can I do that?

Hi,

Thanks for reaching out.

At the moment the only way would be to add a post deploy script or a script step after the package deploy step running your own sc.exe command.

Thanks,
Dalmiro

I was hoping there would be other means. Thanks Dalmiro.