The big issue is the added ", which should not be there, unless paths containing spaces. There is no GUI interaction, so there should be no problem running that as a service. IF there is any GUI interaction code within the daemon and the platform is Windows 10 or higher than it won't work anyway:
It will need a controller app to interface with the Daemon/service.
But we only have a snippet.
I think Marcov is right, but just in the case the OP does not have ANY gui code in his app. Logging is OK. In older Windows, like 7 or even XP, such code used to work.