<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    簡易語言

    數字溝通

     

    打包——izpack(2)

     

    現在我們接著玩上次的試驗結果,雙擊生成的install.jar運行安裝,如下圖:


    lzPack1-1

    下一步如圖:(你發現和lzPack本身的安裝過程和界面是一樣的,不過也已經夠漂亮了,是吧)(以后都是下一步的圖)


    lzPack1-2


    圖lzPack1-3


    圖lzPack1-4


    圖lzPack1-5


    圖lzPack1-6

    圖lzPack1-7


    圖lzPack1-8

      點擊Done完成安裝

      看看我們sample的結構(即要安裝的軟件)


    lzPack1-9

      看看安裝好的文件結構


    lzPack1-10

    少了一個文件listener,多了一個文件uninstaller,進入uninstaller雙擊uninstaller.jar就看到卸載界面了(超簡單的界面,就不貼了)。我們在回頭看看那個配置文件install.xml,如下:

    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>

    - <!--

     
        A sample installation file.
        Use it as a base for your own installers :-)
        
        To compile it :
        - go in the bin directory where you installed IzPack
        - call "compile ../sample/install.xml -b ../sample"

      -->

    - <installation version="1.0">

    - <!--

     
            The info section.
            The meaning of the tags should be natural ...
        

      -->

    - <info>

      <appname>Sample Installation</appname>

      <appversion>1.4 beta 666</appversion>

    - <authors>

      <author name="JPz" email="jpz@superman.org" />

      <author name="Hidden Man" email="hidden@hisdomain.com" />

      </authors>

      <url>http://www.anotherworld-inspace-website.net/</url>

      </info>

    - <!--

     
            The gui preferences indication.
            Sets the installer window to 640x480. It will not be able to change the size.
        

      -->

      <guiprefs width="640" height="480" resizable="no" />

    - <!--

     
            The locale section.
            Asks here to include the English and French langpacks.
        

      -->

    - <locale>

      <langpack iso3="eng" />

      <langpack iso3="fra" />

      </locale>

    - <!--

     
            The resources section.
            The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
        

      -->

    - <resources>

      <res id="LicencePanel.licence" src="Licence.txt" />

      <res id="InfoPanel.info" src="Readme.txt" />

      </resources>

    - <!--

     
            The panels section.
            We indicate here which panels we want to use. The order will be respected.
        

      -->

    - <panels>

      <panel classname="HelloPanel" />

      <panel classname="InfoPanel" />

      <panel classname="LicencePanel" />

      <panel classname="TargetPanel" />

      <panel classname="PacksPanel" />

      <panel classname="InstallPanel" />

      <panel classname="FinishPanel" />

      </panels>

    - <!--

     
            The packs section.
            We specify here our packs.
        

      -->

    - <packs>

    - <pack name="Base" required="yes">

      <description>The base files</description>

      <file src="Readme.txt" targetdir="$INSTALL_PATH" />

      <file src="Licence.txt" targetdir="$INSTALL_PATH" />

      <file src="script.bat" targetdir="$INSTALL_PATH" />

      <parsable targetfile="$INSTALL_PATH/script.bat" />

    - <!--

     The file will be parsed 

      -->

      </pack>

    - <pack name="Docs" required="no">

      <description>The documentation</description>

      <file src="doc" targetdir="$INSTALL_PATH" />

    - <!--

     Reccursive adding 

      -->

      </pack>

    - <pack name="Sources" required="no">

      <description>The sources</description>

      <file src="src" targetdir="$INSTALL_PATH" />

      </pack>

      </packs>

      </installation>

     我算它是七段,第一段

    <installation version="1.0">

     聲明安裝的版本

    第二段

    <info>

      <appname>Sample Installation</appname>

      <appversion>1.4 beta 666</appversion>

    - <authors>

      <author name="JPz" email="jpz@superman.org" />

      <author name="Hidden Man" email="hidden@hisdomain.com" />

      </authors>

      <url>http://www.anotherworld-inspace-website.net/</url>

      </info>

     聲明軟件的基本信息:名稱、版本、各個作者和聯系方式、公司主頁。對應圖lzPack1-2

    第三段

    <guiprefs width="640" height="480" resizable="no" />

    設置安裝導航的寬高等屬性。

    第四段

    <locale>

      <langpack iso3="eng" />

      <langpack iso3="fra" />

      </locale>

     語言選擇,對應圖lzPack1-1

    第五段

    <resources>

      <res id="LicencePanel.licence" src="Licence.txt" />

      <res id="InfoPanel.info" src="Readme.txt" />

      </resources>

     提供兩個資源給客戶閱讀,對應兩個界面,圖lzPack1-3lzPack1-4。分別為軟件說明和基本條款。

    第六段

    <panels>

      <panel classname="HelloPanel" />

      <panel classname="InfoPanel" />

      <panel classname="LicencePanel" />

      <panel classname="TargetPanel" />

      <panel classname="PacksPanel" />

      <panel classname="InstallPanel" />

      <panel classname="FinishPanel" />

      </panels>

     說明順序下來都經過那些界面。

    第七段

    <packs>

    - <pack name="Base" required="yes">

      <description>The base files</description>

      <file src="Readme.txt" targetdir="$INSTALL_PATH" />

      <file src="Licence.txt" targetdir="$INSTALL_PATH" />

      <file src="script.bat" targetdir="$INSTALL_PATH" />

      <parsable targetfile="$INSTALL_PATH/script.bat" />

    - <!--

     The file will be parsed 

      -->

      </pack>

    - <pack name="Docs" required="no">

      <description>The documentation</description>

      <file src="doc" targetdir="$INSTALL_PATH" />

    - <!--

     Reccursive adding 

      -->

      </pack>

    - <pack name="Sources" required="no">

      <description>The sources</description>

      <file src="src" targetdir="$INSTALL_PATH" />

      </pack>

      </packs>

      提供了要復制的文件夾結構,由<packs>標簽包括

      共有三個包,每個包由<pack>標簽標識 name=”base” 的包為基本包,包括所有文件和文件夾的文件夾,其下包括三個文件。$INSTALL_PATH即安裝路徑,由用戶給出

      包Docs 是文件夾doc

      <file >元素標明文件或文件夾,src屬性為文件或文件夾名,targetdir屬性為要放到的路徑

      包Sources是文件夾src

      整個文件結構和關系就由最后這一段來闡釋。

        另外,包<pack>還可以有其他的用途,下一節是個較實用的實例,你會看到它的用途,要不我們打的包都和izpack一樣光禿禿的,沒快捷鍵,沒環境變量,在實踐中我們慢慢發現光明,原來有趣的東西等著我們去探索。



    一種更好的態度,更好的學習、思維方式。它會是網絡極佳的生存方式,你喜歡就對。

    posted on 2008-11-24 20:01 yangyusong 閱讀(2206) 評論(0)  編輯  收藏 所屬分類: 打包


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    導航

    統計

    常用鏈接

    留言簿(3)

    隨筆分類

    隨筆檔案

    文章分類

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲精品无码久久久久YW| 亚洲免费电影网站| 免费观看四虎精品成人| 免费日韩在线视频| 亚洲综合无码一区二区痴汉 | 男的把j放进女人下面视频免费| 相泽亚洲一区中文字幕| eeuss免费天堂影院| 亚洲级αV无码毛片久久精品| 成人国产精品免费视频| 亚洲av福利无码无一区二区| 最近免费中文字幕大全免费| 亚洲一区在线观看视频| 在线a毛片免费视频观看| 国产午夜亚洲精品不卡| 国产亚洲美女精品久久久| 鲁丝片一区二区三区免费| 亚洲国产综合自在线另类| 午夜小视频免费观看| 无码少妇精品一区二区免费动态 | 永久免费av无码网站yy| 亚洲视频一区二区三区| 我要看WWW免费看插插视频| 九九精品国产亚洲AV日韩| 国产亚洲精品看片在线观看| 1000部羞羞禁止免费观看视频| 456亚洲人成影院在线观| 一本久到久久亚洲综合| 久久伊人免费视频| 亚洲日韩精品无码专区加勒比☆| 又色又污又黄无遮挡的免费视| 丁香花在线观看免费观看图片| 亚洲高清视频免费| 国产精品免费看久久久无码| 成人片黄网站色大片免费观看cn| 亚洲成a人片在线观看中文app| 亚洲av麻豆aⅴ无码电影| 99精品视频在线视频免费观看 | 精品国产呦系列在线观看免费 | 久久精品国产亚洲网站| 最新中文字幕电影免费观看|