2013-07-05 49 views
1

我使用Izpack 5爲Java應用程序構建安裝程序。我有正確配置了Registry Listener和附加dll的install.xml,以便在安裝應用程序時,它在Windows控制面板/程序和功能中列出。你在RegistrySpec.xml中爲Izpack安裝設置了什麼發佈者字段

然而領域出版商尺寸沒有填寫。

我知道我需要創建一個RegistrySpec.xml文件和INSTALL.XML內引用它,但我該怎麼把它?

我找到的所有例子都顯示了替換卸載軟件包的例子,但這不是我想要做的事情我對默認的卸載程序感到滿意,並且不想讓potentailly打破該部分,我只是想添加發布者和大小字段。

回答

0

你只需要在同一個的keyPath內的相應值來添加新條目如下:

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

然後你就可以在大小字段做同樣的。

相關問題