为Java桌面应用程序创建一个安装程序 [英] Creating an installer for Java desktop application

查看:131
本文介绍了为Java桌面应用程序创建一个安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被问了很多次,所有的时候都有一个答案,说明使用可执行的jar或使用launch4j或类似的应用程序制作一个.exe。


$ b $我可能听起来像是一个新手,我实际上是这样。



我一直在尝试一些Java项目。我已经成功地制作了一个可执行的jar,还有一个.exe文件。所有感谢您以前在SO中的答案:)



但是,我想为Windows创建一个安装程序。喜欢,按Next(下一步)2 - 3次(显示所有条款和条件等),然后用户指定一个位置(如C:\Program Files\New Folder\My App),然后我的.exe,lib文件夹,img文件夹,其他重要文件夹与.exe文件一起粘贴在目标文件夹中,然后在桌面上创建快捷方式。



任何指向如何我实现了这一点?

解决方案

我一直在使用 InnoSetup 很长一段时间。它一直工作得很好。它可以做你需要的一切(打开文件,在桌面上启动快捷方式,开始菜单等),并生成我们习惯的安装程序。


I know this question has been asked many a times and all the time there is an answer which says about using an executable jar or making an .exe using launch4j or similar app.

I may sound like a novice, which I actually am.

I have been trying a few things with a Java project. I have successfully made an executable jar and also an .exe file from it. All thanks to your previous answers in SO :)

But, I want to create a installer for Windows. Like, pressing Next for 2 - 3 times(which shows all the terms and conditions etc), then a user specify a location(like C:\Program Files\New Folder\My App), then my .exe, lib folder, img folder, other important folders get pasted in the destination folder along with the .exe file and then a shortcut is created on a desktop.

Any pointers to how can I achieve this ?

解决方案

I have been using InnoSetup for a long time. It has always worked very well. It can do everything you need (unpack files, put shortcuts on desktop, start menu etc) and generates installers that we are used to.

这篇关于为Java桌面应用程序创建一个安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆