Java应用程序安装程序作为Windows服务或启动

时间:2022-02-21 06:32:07

I am using netbeans to create a project, and the final result needs to be an installer, that when you install the app, it would automatically turn itself on after every computer reset. I was looking (still am) for any software that would help me, but cant find anything.. I found a simple install creator and it makes an installer but it doesnt automatically puts the app as a windows service (i could use the CMD to make it as a service after the installation, but i want it to be automatic).

我正在使用netbeans来创建一个项目,最终结果需要是一个安装程序,当你安装应用程序时,它会在每次重置计算机后自动打开。我正在寻找(仍然是)任何可以帮助我的软件,但无法找到任何东西..我找到了一个简单的安装创建者并且它创建了一个安装程序,但它不会自动将应用程序作为Windows服务(我可以使用CMD来安装后将其作为服务,但我希望它是自动的)。

Another alternative is that the installer would put the application exe in the users startup group, but again, i want it to do so automatically.

另一种方法是安装程序将应用程序exe放在用户启动组中,但同样,我希望它自动执行此操作。

Can someone recommend me some simple software for this. Thank you.

有人可以推荐一些简单的软件。谢谢。

3 个解决方案

#1


0  

Try Install4J. Although it is not free.

试试Install4J。虽然它不是免费的。

install4j offers full support for generating and installing services (daemons). For services, install4j generates service executables on Windows, startup items on Mac OS X and start/stop scripts on Unix/Linux platforms.

install4j提供对生成和安装服务(守护进程)的完全支持。对于服务,install4j在Windows上生成服务可执行文件,在Mac OS X上生成启动项,在Unix / Linux平台上生成/停止脚本。

#2


0  

I don't think this is a right SO question.

我不认为这是一个正确的SO问题。

Any how, have a Look at WhatInStartup (it's free)

如何,看看WhatInStartup(它是免费的)

Create a exe Jar file of your program, add just add to it.

创建程序的exe Jar文件,添加只需添加即可。

To do it in a easy way,Look at Jar2Exe

要轻松完成,请查看Jar2Exe

#3


0  

We have used Java Service Wrapper at my job, and it has worked fine for years. It is not free though.

我们在工作中使用过Java Service Wrapper,它已经运行了好几年了。它不是免费的。

#1


0  

Try Install4J. Although it is not free.

试试Install4J。虽然它不是免费的。

install4j offers full support for generating and installing services (daemons). For services, install4j generates service executables on Windows, startup items on Mac OS X and start/stop scripts on Unix/Linux platforms.

install4j提供对生成和安装服务(守护进程)的完全支持。对于服务,install4j在Windows上生成服务可执行文件,在Mac OS X上生成启动项,在Unix / Linux平台上生成/停止脚本。

#2


0  

I don't think this is a right SO question.

我不认为这是一个正确的SO问题。

Any how, have a Look at WhatInStartup (it's free)

如何,看看WhatInStartup(它是免费的)

Create a exe Jar file of your program, add just add to it.

创建程序的exe Jar文件,添加只需添加即可。

To do it in a easy way,Look at Jar2Exe

要轻松完成,请查看Jar2Exe

#3


0  

We have used Java Service Wrapper at my job, and it has worked fine for years. It is not free though.

我们在工作中使用过Java Service Wrapper,它已经运行了好几年了。它不是免费的。