我如何获得IzPack将程序添加到“程序和功能"中 [英] How do I get IzPack to add program to Program and Features

查看:98
本文介绍了我如何获得IzPack将程序添加到“程序和功能"中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IzPack 5.0 beta 11打包我的Java应用程序.

I'm using IzPack 5.0 beta 11 to package up my Java application.

如何在Windows上使用IzPack安装程序,使其作为已安装程序出现在程序和功能"中?

How do I get a program installed using IzPack on Windows to appear in Program and Features as an installed program?

编辑 我发现了一些有关使用Izpack 5将内容放入注册表中的信息 http://docs.codehaus. org/display/IZPACK/registry ,但是我仍然很难理解我所做的文档是模糊的.我只是希望我的程序显示在程序和功能"中,并且可以从此处进行卸载.

EDIT I've found some information about putting things in the registry with Izpack 5 http://docs.codehaus.org/display/IZPACK/registry but Im still struggling to understand quite what I do the documentation is vague. I simply want my program to be shown in Programs and Features, and it be possible to uninstall from there.

推荐答案

所以我找到了此页面

So I found this page http://docs.codehaus.org/pages/viewpage.action?pageId=142803064, the documentation is a bit outdated for Izpack 5 beta 11 but eventually worked out all I needed to get it working on a 32-bit installtion was add the following to my install.xml

<natives>
   <native type="3rdparty" name="COIOSHelper.dll" stage="both">
   </native>
</natives>

<listeners>
    <listener classname="RegistryInstallerListener" stage="install"/>
    <listener classname="RegistryUninstallerListener" stage="uninstall"/>
</listeners>

,对于64位:

<natives>
   <native type="3rdparty" name="COIOSHelper_x64.dll" stage="both">
   </native>
</natives>

<listeners>
    <listener classname="RegistryInstallerListener" stage="install"/>
    <listener classname="RegistryUninstallerListener" stage="uninstall"/>
</listeners>

具有以下优点:

  • 安装后我没有被询问是否安装正确.
  • 它在程序和功能"中列出
  • 可以从程序和功能"中卸载它

这篇关于我如何获得IzPack将程序添加到“程序和功能"中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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