Building an App with Datasmith Direct Link

So I now have a shipping build from the source engine and I added the code you profided.
With this code direct link does work when I provide “-messaging” as an additional parameter e.g. with cmd. (It does not work without the code in the source shipping build as mentioned above by Wabo)

Is there a way to get access to messaging without the need to pass it to the exe like this?