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

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

问题描述

我知道这个问题已经被问过很多次了,而且一直都有一个关于使用可执行 jar 或使用 launch4j 或类似应用程序制作 .exe 的答案.

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.

我一直在用 Java 项目尝试一些东西.我已经成功地制作了一个可执行的 jar 和一个 .exe 文件.感谢您之前在 SO 中的回答:)

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 :)

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

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 FilesNew FolderMy 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 ?

推荐答案

我一直在使用 InnoSetup.它一直工作得很好.它可以执行您需要的所有操作(解压缩文件、在桌面上放置快捷方式、开始菜单等)并生成我们习惯的安装程序.

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天全站免登陆