java 如何使用 izPack 创建安装程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1466861/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use izPack to create an installer
提问by Sunil Kumar Sahoo
Hi I have installed izPack in linux operating system. I have my own java application in jar format. I want to create a installer of that jar file for a linux operating system. I want to display license agreement when some one wants to install using that installer
嗨,我已经在 linux 操作系统中安装了 izPack。我有自己的 jar 格式的 java 应用程序。我想为 linux 操作系统创建该 jar 文件的安装程序。当有人想使用该安装程序进行安装时,我想显示许可协议
So can anyone tell me the step by step approach to create installer using izpack.
谁能告诉我使用 izpack 创建安装程序的分步方法。
Thanks Sunil Kumar Sahoo
感谢 Sunil Kumar Sahoo
回答by SingleShot
Creating an installer with IzPack is fairly straightforward and well-documented. Unfortunately the specifics are highly dependent on the product to be installed, so your best bet is to read the documentationand look at the sample.
使用 IzPack 创建安装程序非常简单且文档齐全。不幸的是,具体细节高度依赖于要安装的产品,因此最好的办法是阅读文档并查看示例。
回答by Muhammad Imran Tariq
Hello In the link below you will find a nice help about izpack installer.
您好 在下面的链接中,您将找到有关 izpack 安装程序的很好的帮助。
http://www.imrantariq.com/blog/?p=89
http://www.imrantariq.com/blog/?p=89
Link below contains a detailed pdf to make installer with izpack.
下面的链接包含使用 izpack 制作安装程序的详细 pdf。
http://www.imrantariq.com/blog/?attachment_id=112
http://www.imrantariq.com/blog/?attachment_id=112
cheers
干杯
Imran tariq
伊姆兰·塔里克
回答by Angelo Fuchs
You wrote that you already have the install.xml as documented at the izpack homepage
您写道,您已经拥有 izpack 主页上记录的 install.xml
So the next step would be to compile the installer.jar from it.
所以下一步是从它编译 installer.jar。
Either you follow the getting started guide from izpack or you use a plugin to include the izpack action to your deployment process.
您可以按照 izpack 的入门指南进行操作,也可以使用插件将 izpack 操作包含到您的部署过程中。
There is a plugin for maven (see here http://izpack.codehaus.org/izpack-maven-plugin/usage.htmlfor how to use it) and there also is one for ant, its documented at the izpack page. http://izpack.org/documentation/sample-install-definition.html
有一个 maven 插件(参见 http://izpack.codehaus.org/izpack-maven-plugin/usage.html了解如何使用它),还有一个用于 ant 的插件,它记录在 izpack 页面上。 http://izpack.org/documentation/sample-install-definition.html
回答by Meher Zeb
You need to add.
你需要添加。
- License.txt file with the same level of bin directory. Now add the following line to panel
- add panel tage like "panel classname="LicencePanel" " in panels tag
- add file tage like "file src="Licence.txt" targetdir="$INSTALL_PATH" " in "packet" tag.
- 同级别bin目录下的License.txt文件。现在将以下行添加到面板
- 在面板标签中添加面板标签,如“面板类名=“LicencePanel””
- 在“packet”标签中添加文件标签,如“file src="Licence.txt" targetdir="$INSTALL_PATH" "。

