Keep App Alive Without Window on Windows


I’m writing an app that I want to run only from the macOS Menubar and the Windows Tray. How do I keep a desktop app alive on Windows without a visible window? On macOS it’s easy - just set the App.DefaultWindow to None. If I do this on Windows, the app launches and then immediately exits. Presumably this is because there is no active window. If I set App.DefaultWindow to a Window then the app persists. I have the Windows Tray item setup correctly and the app is essentially running an Aloe Express server in the background.

Any thoughts?

app.AutoQuit = false

in may help.

Thanks Christian. Exactly right.