2013-11-15 50 views
2

這是我的安裝程序的xml文件。

你在RegistrySpec.xml中爲Izpack安裝設置了什麼大小字段

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

我得到出版商的名字,但我沒能獲得大小字段value.How我可以添加在添加刪除程序大小字段。

回答

0

我想你可能已經找到了解決方案(或放棄),因爲這個問題已經超過三年了,但我找到了解決方案。它似乎沒有被記錄在IzPack網站上,但是通過架構和其他已安裝程序的註冊表設置來揭示答案。

應用程序大小以鍵值「EstimatedSize」下的應用程序大小(以KB爲單位)以32位DWORD值的形式存儲在註冊表中。例如,對於100MB(== 102400KB)的應用程序,您的配置將如下所示:

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