I built a java app and wrapped it as a service using an advanced installer. After installation, the service is launching and the app is working as expected. And it is working as expected if I restart the machine. However, if I shut down the machine and start it again, or log off the user and login back again, the service is showing as started, but I see that even the first line of the main method in the app is also not executed. Any ideas on what could be causing these differences?