你在RegistryInp.xml中为Izpack安装放置了什么来设置Size字段

时间:2013-11-15 03:37:06

标签: izpack

这是我的安装程序的xml文件。

        

    <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="DisplayName"
                keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
                root="HKLM"
                string="$APP_NAME" />
            <value name="DisplayVersion"
                keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
                root="HKLM"
                string="$APP_VER" />
            <value name="UninstallString"
                keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
                root="HKLM"
                string="&quot;$JAVA_HOME\bin\javaw.exe&quot; -jar &quot;$INSTALL_PATH\uninstaller\uninstaller.jar&quot;" />
            <value name="DisplayIcon"
                keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
                root="HKLM"
                string="$INSTALL_PATH\icon\uninstallericon.ico" />
            <value name="Publisher"
                keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
                root="HKLM"
                string="opname" />
        </pack>
    </izpack:registry>

我正在获取发布商名称,但我无法获得大小字段值。如何在添加删除程序中添加大小字段。

1 个答案:

答案 0 :(得分:0)

我猜你现在可能已经找到了解决方案(或放弃了)因为这个问题已经超过三年了,但我找到了解决方案。它似乎没有在IzPack网站上记录,但是通过模式和其他已安装程序的注册表设置进行挖掘可以看出答案。

应用程序大小作为32位DWORD值存储在注册表中,该值是应用程序的大小(KB),位于“EstimatedSize”键下。例如,对于100MB(== 102400KB)应用程序,您的配置如下所示:

<value name="EstimatedSize"
       keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$APP_NAME $APP_VER"
       root="HKLM"
       dword="102400" />