JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Install app as a Windows service (post-install script support)

Open lemonish opened this issue 3 years ago • 2 comments

How to package a spring boot jar

已打包好的 spring boot jar 如何使用该插件进行打包 如何将该应用程序注册为服务 可以开机启动

  • JavaPackager version:
  • OS version: MacOS 12.4
  • JDK version: 11
  • Build tool:
    • Gradle

lemonish avatar May 18 '22 15:05 lemonish

Hi @lemonish! You can package your app, which uses Spring Boot, as any other app. Currently JavaPackager is not able to install services, but maybe we can add post-install scripts which do all the magic. Any suggestion?

fvarrui avatar May 23 '22 00:05 fvarrui

@lemonish 打包成exe后 用 win的 sc命令创建服务

sc create TestService binpath= "c:\test.exe" displayname= "TestService" depend= Tcpip start= auto 

lhDream avatar May 25 '22 03:05 lhDream