查看單個文章
舊 2004-09-16, 04:46 PM   #63 (permalink)
psac
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

winrar的控制setup的制作.....
使用文本編輯軟體修改附件裡面的setup.s文件
可以修改的地方是……兩個標籤中的東西,取代成你自己要顯示的文本,這個是安裝程式第一個畫面中的介紹。
其中第三行Title=xxxx的xxxx部分可以自己隨便寫,這個是控制安裝程序標題欄的。

  然後解壓釋放winrar3.4英文版到C:\rar目錄下面(如果你把那個key放在這裡的話那麼就是一次性安裝版了,即:安裝好就已經註冊的了),把附件中的那兩個文件(自己編輯好的)放在c:\setup下面。其中rar下面的東西你可以自己修改( 比如中文化,或者編輯其他的東西)

然後進入指令行模式執行
"C:\program files\winrar\rar" a -r -ep1 -cfg- -s -m5 -zc:\setup\setup.s -sfxc:\setup\Setup.SFX c:\wrar304n c:\rar\*.*
這行指令前面雙引號中的是你安裝rar的路徑,如果你不是安裝到這裡可以修改,但是一定要用rar.exe而不是winrar.exe(rar.exe是指令行操作的程序。winrar是圖形界面的)


原版的可以到Winrar官方網站下載。RAR language files那個就是。

http://www.rarlab.com/rar/rarlng.rar

SFX也是可從原版的安裝程序中「抽取」出來的,工具是UltraEdit!
提供的新的SFX,自己都能做了,方法是,用下面的(RAR Comment.txt)...這個附件中的TXT匯入到Comment其中...


RAR Comment.txt的範例....可加入comment
; WinRAR
; Multifunctional Integrated Archive Manager

;The comment below contains SFX script commands

Path=WinRAR
SavePath
Setup=uninstall.exe /setup
Presetup=uninstall.exe /clean
Overwrite=1
Delete=*.lng
Delete=rarlng.dll
Delete=rarext.dll
Delete=register.frm
Delete=rar_site.txt
Delete=register.txt
Delete=order.txt
Delete=Dos.sfx
Delete=os2.sfx
Delete=Formats\ace.fmt
Delete=Formats\arj.fmt
Delete=Formats\cab.fmt
Delete=Formats\gz.fmt
Delete=Formats\lzh.fmt
Delete=Formats\tar.fmt
Delete=Formats\uue.fmt
Delete=Formats\bz2.fmt
Delete=Formats\iso.fmt
Delete=Formats\unacev2.dll
Title=WinRAR 3.30
Text
{
<html>
<body bgcolor="#ececec">
<style>
body {
color: #000000;
background-color: #ffffff;
font-family: "MS Sans Serif";
font-size: 12;
scrollbar-3dlight-color:#f0f0f0;
scrollbar-arrow-color:#f0f0f0;
scrollbar-darkshadow-color:#909090;
scrollbar-face-color:#909090;
scrollbar-highlight-color:#f0f0f0;
scrollbar-shadow-color:#f0f0f0
}
em {color: navy; font-style: normal}
</style>
&nbsp;&nbsp; <b>WinRAR is a powerful archiver</b>. It
provides complete support of <em><b>RAR</b></em> and
<em><b>ZIP</b></em> files, unpacking of <em>ARJ</em>,
<em>CAB</em>, <em>LZH</em>, <em>ACE</em>, <em>TAR</em>,
<em>GZ</em>, <em>UUE</em>, <em>BZ2</em>, <em>JAR</em>,
<em>ISO</em>. Among WinRAR features are strong compression,
volumes, encryption, self-extracting modules, backup
facilities.<br><br>
&nbsp;&nbsp; <b>WinRAR is shareware</b>. Anyone may use
it during a test period of 40 days. Following this test
period or less, if you wish to continue to use WinRAR,
you must register.<br><br>
&nbsp;&nbsp; <b>There are no additional license fees</b>, apart from
the cost of registration, associated with the creation
and distribution of RAR archives or self-extracting
archives. Legally registered owners may use their copies
of WinRAR to produce and distribute those archives free of
any additional RAR royalties.<br><br>
&nbsp;&nbsp; <b>WinRAR archiver is distributed as is</b>.
No warranty of any kind is expressed or implied. You use at your
own risk. Neither the author nor the agents of the author will be
liable for data loss, damages, loss of profits or any other kind
of loss while using or misusing this software.
</body>
</html>
}
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
回覆時引用此帖