everyone
I have problem with jpackage when i attemp create windows service
after i create java application and need create installer using JPackage
by using the following commnad
jpackage --type msi --input . --app-version 1.0.00 --name my-application --main-jar ./my-application.jar --main-class org.example.Main --icon "icon.ico" --win-dir-chooser --win-shortcut --win-menu --jlink-options --bind-services
my installer work fine, but my problem i need application run as a windows service and Jpackage using nssm to help create installer using Jpackage as a windows service but there problem after run the following command
jpackage --type msi --input . --app-version 1.0.00 --name my-application --main-jar ./my-application.jar --main-class org.example.Main --icon "icon.ico" --win-dir-chooser --win-shortcut --win-menu --resource-dir "C:\nssm-2.24\win64" --launcher-as-service --jlink-options --bind-services
installer run nssm.exe not my application in windows service layer
can anyone help me in this problem?
I attemp to read JPackage documentation
and using this answer as reference to create installer using Jpackage and nssm