Hi All,
When we try to install a service using prunsrv 1.2, it fails with error
Application popup: prunsrv.exe - Application Error : The application was unable
to start correctly (0xc000007b). Click OK to close the application.
But the same command for installing service works with prunsrv version 1.1.
We are registering the service using below command:
"%OH%\bin\prunsrv" //IS//Agent --DisplayName="AV Agent" ^
--ServiceUser=LocalSystem ^
--Install="%OH%\bin\prunsrv.exe" ^
--Jvm=auto ^
--StartMode=jvm ^
--StartClass=<start class> ^
--Startup=auto ^
--StartParams=START ^
++StartParams=-l ^
++StartParams=%darg% ^
--StopMode=jvm ^
--StopClass=<stop class> ^
--StopParams=STOP ^
++StopParams=-l ^
++StopParams=%darg% ^
--LibraryPath="%PATH%" ^
--LogPath="%OH%\av\log" ^
--LogPrefix=av.agent.prunsvr ^
--StdOutput=auto --StdError=auto ^
--Classpath="%AGENTCLASSPATH%" ^
--JvmOptions=-DAGENT_HOME="%OH%";-DAGENT_PLATFORM=%OSPLATFORM%;!JVMOPTIONS!
Thanks,
Kavi