Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 对于Izpack安装,您在RegistrySpec.xml中放置了什么来设置发布者字段_Java_Windows_Installation_Registry_Izpack - Fatal编程技术网

Java 对于Izpack安装,您在RegistrySpec.xml中放置了什么来设置发布者字段

Java 对于Izpack安装,您在RegistrySpec.xml中放置了什么来设置发布者字段,java,windows,installation,registry,izpack,Java,Windows,Installation,Registry,Izpack,我正在使用Izpack 5为Java应用程序构建安装程序。我已使用注册表侦听器和其他DLL正确配置install.xml,以便在安装应用程序时,它会列在Windows控制面板/程序和功能下 但是,Publisher和Size字段未填写 我知道我需要创建一个RegistrySpec.xml文件并在install.xml中引用它,但是我应该在其中放什么呢 我找到的所有示例都显示了更换卸载软件包的示例,但这不是我想要做的。我对默认卸载程序很满意,不想破坏这一部分,我只想添加“发布者”和“大小”字段。您

我正在使用Izpack 5为Java应用程序构建安装程序。我已使用注册表侦听器和其他DLL正确配置install.xml,以便在安装应用程序时,它会列在Windows控制面板/程序和功能下

但是,PublisherSize字段未填写

我知道我需要创建一个RegistrySpec.xml文件并在install.xml中引用它,但是我应该在其中放什么呢


我找到的所有示例都显示了更换卸载软件包的示例,但这不是我想要做的。我对默认卸载程序很满意,不想破坏这一部分,我只想添加“发布者”和“大小”字段。

您只需在同一密钥路径中添加具有相应值的新条目,如下所示:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- 
    ATTENTION!!! do not edit with an editor which do not handle UTF-8 in a right manner!!
    Storing with a wrong editor can crash this file!
    Registry definition file for IzPack Installation.
    $Id$
-->

<izpack:registry version="5.0"
                 xmlns:izpack="http://izpack.org/schema/registry"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://izpack.org/schema/registry         http://izpack.org/schema/5.0/izpack-registry-5.0.xsd">

    <pack name="UninstallStuff">
        <!-- Special "pack", if not defined an uninstall key will be generated automatically -->
        <!-- The variable $UNINSTALL_NAME can be only used if CheckedHelloPanel will be used
               because there the variable will be declared. With that variabel it is possible
               to install more as one instances of the product on one machine each with an
               unique uninstall key. -->
...
        <value name="Publisher"
            keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
            root="HKLM"
            string="MyCompany Software Inc." />
...
    </pack>
</izpack:registry>

...
...
然后可以对“大小”字段执行相同的操作