I have been trying to figure out how to create a Windows Service for WLP using Apache Commons Daemon but am having issues. Here is the command I am using to create the service, but when I try to start it I get an error (the dreaded Access is Denied, even though I run this command as the local admin):
ZZZRunService //IS --DisplayName="ZZZ Application Server" --Description="ZZZ Application Server" --Startup=auto --StartMode=exe --StartImage=C:\Windows\system32\cmd.exe --StartPath="c:\wlp\bin" --StartParams=start;server1;--clean
I know this command is not complete but if I can't get this basic part done then no sense doing the rest. Has anyone done this before?