史萊姆論壇

返回   史萊姆論壇 > 教學文件資料庫 > 繪圖軟體應用技術文件
忘記密碼?
論壇說明 標記討論區已讀

歡迎您來到『史萊姆論壇』 ^___^

您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的!

請點擊這裡:『註冊成為我們的一份子!』

Google 提供的廣告


 
 
主題工具 顯示模式
舊 2006-06-01, 09:08 AM   #1
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 金幣
預設 軟體 - Office 2003 整合SP2之後進行CAB壓縮打包封裝的方法

Office 2003 整合SP2之後進行CAB壓縮打包封裝的方法
一直在找尋Office 2003 在整合SP2之後重新進行封裝的辦法,今天終於找到了一個,是國外一位叫marek722的網友寫的,值得借鑒,特此推薦。

http://www.msfn.org/board/index.php?showtopic=51225


不過裡面的其中一個文件下不到,還不能加以試驗。

根據這個方法,這裡簡要翻譯一下:

具體準備工作見原帖。

1、複製Office 2003光碟下所有文件到本機硬碟如E:\office2003目錄下,並去掉只讀和隱藏內容。解壓所要整合的修正檔到E:\OSP下。備份E:\office2003\FILES\SETUP\*.INI

2、執行如下命令進行整合


msiexec /a E:\office2003\PRO11.MSI /p E:\OSP\MAINSP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a E:\office2003\OWC11.MSI /p E:\OSP\OWC11SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a E:\office2003\OWC10.MSI /p E:\OSP\OWC102003SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"

... (and so on for hotfixs)

整合完後刪除E:\office2003下的所有cab文件。

3、 E:\office2003下建立sort目錄,再在sort下建立pro11、owc10、owc11三個並立的目錄,在這三個目錄下分別放置用ORCA從各自對應.MSI文件中匯出的CabinetDetail、Component、 Directory、 File、 Media五個表文件。

4、將sort2cabs.zip裡的文件解壓到到 E:\office2003\sort,將E:\office2003\FILES\SETUP下的所有XML文件複製到E:\office2003\sort。編輯tabledirs.lst與sort下所建目錄相對應,編輯xmlfiles.lst與 sort下XML文件相對應。

5、放置md5sum.exe 和 makecab.exe到通用路徑如C:\windows下。

6、在E:\office2003\sort路徑下執行:

cscript sort2cabs.jsOK,你可以暫時去喝杯咖啡了。

7、當腳本停止要你替換msi表時,將*.new.idt匯入對應的.msi 中,替換掉老的(不要合併),儲存。都替換完成後按ENTER繼續執行腳本。

8、將XML文件從E:\office2003\sort 覆蓋到 E:\office2003\FILES\SETUP。將備份的INI文件也還回到 E:\office2003\FILES\SETUP。然後對照原版光碟刪除多餘的目錄和文件。。。。。


(若要製作5in1,以此類推)
這個方法, 會不會把 office 的光碟超過700mb? 以前做出來的, 都超過700mb ..
絡上找到繁中office 2003 pro (不包含 5in1的) 已經超過 700M, 後來自行製造一次, 還是超過,
怪怪的.....


如果單是放office Pro的話,肯定不會超過700Mb。

如果要做整合SP2的5in1光碟,不進行優化的話,肯定要超過CD 容量700Mb的。



從原網上看,如果用cdimage優化一下的話,5in1可以做到679MB。

The final size for ..
Office, Frontpage, Visio, OneNote, ProjectClient -- 2003 integrated with Service Pack 2 after using cdimage.exe to optimze the source,
was only 679MB.

============================
After reading a lot about slipstreaming SP1 to Office 2003 still I couln'd find a nice solution. So after many different approaches and reading a lot about MSI here comes another guide on slipstreaming

The Goal: build a fully functional Office 2003 SP1, using cache on setup, asking for serial, being only a bit larger than the original without SP1 & allowing for administrative install

What do you need:
- ORCA
- MSI 3.1 installed
- WSH 5.6 installed
- md5sum.exe (http://unxutils.sourceforge.net/)
- makecab.exe (Microsoft Cabinet SDK)
- sort2cabs.js (Download (5,5kB))
- Office 2003 CD(s)
- appropriate administrative updates
- some hard disk space and some time

What I did to create a working Office 2003 SP1:

1. Copy the office 2003 to the hard disk (referred from now on as X:\office2003). Remove all hidden and write-only attributes from files. Store all updates on hard disk (*.MSP, directory referred to is called x:\SP1). Make backups of X:\office2003\FILES\SETUP\*.INI

2. Apply Updates (slipstream) using the following Syntax:

CODEmsiexec /a X:\office2003\PRO11.MSI /p X:\SP1\MAINSP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\OWC11.MSI /p X:\SP1\OWC11SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\OWC10.MSI /p X:\SP1\OWC102003SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\FP11.MSI /p X:\SP1\MAINSP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="yyyyyyyyyyyyyyyyyyyyyyyyy"
... (and so on for all your components)

if this is not working, try first making an administrative install and then copy the original msi-files over the altered and the apply the patches. This may be no longer necessary since MSI 3.x

After the Updates delete any cab files in X:\office2003

3. Create a subdirectory X:\office2003\sort and extract sort2cabs.zip here. Create subdirectories for every msi you installed before (-> X:\office2003\sort\pro11, X:\office2003\sort\owc10, X:\office2003\sort\owc11, ...). The following has to be done with every msi file:
- open with ORCA
- export tables CabinetDetail, Component, Directory, File, Media to the created corresponding directory

4. Copy XML files located at X:\office2003\FILES\SETUP to X:\office2003\sort. Now edit X:\office2003\sort\tabledirs.lst and X:\office2003\sort\xmlfiles.lst to match your need. tabledirs.lst lists all directories containing the exported tables from the msi packages (existence is checked in sort2cabs.js) and xmlfiles.lst lists all xml to edit (correct md5sums).

5. Open a command line (cmd) and change path to X:\office2003\sort. Start sort2cabs using folling syntax:CODEcscript sort2cabs.js
for successful completion md5sum.exe and makecab.exe should be placed in a directory listed in the path variable! ok, time for a cup of coffee

6. When the script stops you have to replace some tables in your msi packages. Use ORCA for this task:
- open zzz.msi with ORCA (replace zzz with msi package names)
- import tables called *.new.idt from X:\office2003\sort\zzz, replace the old ones, do not merge
- save (this is important, too)
now the script may continue (this stop is necessary for calculating the md5sums for the xml files)

7. That's nearly all, now copy the xml files from X:\office2003\sort to X:\office2003\FILES\SETUP, restore the backed up ini files in X:\office2003\FILES\SETUP and delete all files that were not originally on the office cd (ok, i wrote a bat file for copying all files to another location, which files are necessary you'll see on your cd ). Burn your new Office 2003 on a CD labeled 'OFFICE11'



It may be necessary to edit the msi package of MS Project when building an AIO CD. The table "Media" contains a column "VolumeLabel" which should be "OFFICE11". Make this change after step 1.

I know this is not as easy as just pressing a button, but sort2cabs.js is rather generic and may work with other msi packages. If not, try to alter the script

Here a short summary what the script does:
- read dirlist.lst and test for all necessary files in listed subdirs
- read all *.idt and combine information in arrays
- sort by media (cab files) and sequence numbers from msi packages
- renumber all files/set new sequence numbers to eliminate duplicate numbers (otherwise you cannot use compression)
- compress using makecab and ddf files to control process, sorting of files in cabs must be the same as sorting by sequence numbers in msi packages
- calculate md5 sums for cabs and other files listed in xml files located in X:\office2003\FILES\SETUP

This may help understanding the script. I added some comments, too.

Because I tested the whole process only with SP1 (maybe all later patches can be integrated) and not in detail please report problems here.
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2006-06-02, 10:05 AM   #2 (permalink)
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

Office 2003 SP2龍捲風版V2.2 製作心得







聲明:轉貼本文請註明出處並保持原文的完整性

一、準備工作:
原材料:Office 2003光碟鏡像OFFICE11.ISO
製作工具:UltraISO、Beyond Compare、Orca、cabarc



其中Orca和cabarc取自WindowsR Server 2003 SP1 Platform SDK:



http://www.microsoft.com/downloads/d...displaylang=en



二、整合SP2:



這裡以Office 2003為例:



1、用UltraISO將OFFICE11.ISO中的所有文件及資料夾,提取到D:\PRO11目錄下,並去掉它們的「隱藏」及「只讀」內容。用記事本打開D:\PRO11\FILES\SETUP\ SETUP.INI,把[Options]段替換為以下內容,作用是內置序列號:



[Options]


;USERNAME=User



;COMPANYNAME=Microsoft



PIDKEY=GWH28DGCMPP6RC46J4MT3HFDY



2、執行以下命令,釋放原始安裝文件到D:\OP1目錄下:




D:\PRO11\Setup.exe /a


然後把D:\OP1資料夾複製出一份副本,並更名為D:\OP2
3、下載Office 2003的SP2完整包(文件名為Office2003SP2-KB887616-FullFile-CHS.exe,大小為120MB):



http://www.microsoft.com/downloads/d...playLang=zh-cn



然後右擊Office2003SP2-KB887616-FullFile-CHS.exe,使用WinRAR解壓縮到D:\SP2目錄下。

4、執行以下命令,整合SP2升級包:


siexec /p D:\SP2\MAINSP2ff.msp /a D:\OP2\pro11.msi SHORTFILENAMES=TRUE /qb



由於此時的OP2資料夾大小已達891MB,一張700M的CD裝不下,因此我們可以先把SP2中的更新文件找出來,然後更新到原CAB包中去。


三、更新CAB包:


1、用Beyond Compare對D:\OP2\FILES和D:\OP1\FILES進行資料夾比較,把更新後的文件找出來。


2、這裡以更新WINWORD.EXE為例:首先要核對一下文件名,文件名必須跟CAB包中的標識一致。用Orca打開D:\OP2\ PRO11.MSI檢視,如圖



3、用WinRAR打開D:\PRO11目錄,查找WINWORD.EXE,搜索結果出來了:W2561417.CAB。把W2561417.CAB複製到D:\下,並用Cabarc進行解壓縮,命令如下:


Md d:\ W2561417


cabarc x d:\W2561417.CAB *.* d:\W2561417\ >d:\list.txt

Del d:\W2561417.CAB


然後用記事本打開d:\list.txt,將裡面的內容修改如下:


d:\W2561417\SYMINPUT.DLL



d:\W2561417\TBLHEAD.DLL_2052


d:\W2561417\WDREADME.HTM_2052





d:\W2561417\MF_WDTOC.XML_2052



d:\W2561417\VB_WDTOC.XML_2052


d:\W2561417\WDTOC.XML_2052


d:\W2561417\OMFCSAT.DLL_2052



d:\W2561417\OMFC.DLL

d:\W2561417\WINWORD.EXE


d:\W2561417\EMAIL.DOT_2052


d:\W2561417\WWINTL.DLL_2052


d:\W2561417\HTMQINTL.DLL_2052


d:\W2561417\HTMLMARQ.OCX




d:\W2561417\HTMMINTL.DLL_2052



d:\W2561417\HTMLMM.OCX



d:\W2561417\WORD.PIP



d:\W2561417\WRDPRTID.XML


d:\W2561417\WINWORD8.DOC


d:\W2561417\MSWORD.OLB


d:\W2561417\WORDMAIL.PIP



d:\W2561417\XML2WORD.XSL


d:\W2561417\wwasum.dll_2052.26565E87_AF6F_400C_8ABB_6D7D45C80B32



4、把更新後的WINWORD.EXE,覆蓋到D\ W2561417目錄下,然後用Cabarc重新壓縮打包,命令如下:


cabarc -m LZX:21 n d:\W2561417.CAB @d:\list.txt



最後把產生的W2561417.CAB,覆蓋到D:\PRO11目錄下即可。



至此,我們完成了對WINWORD.EXE的更新,其他文件的更新也同樣處理即可。



四、更新MSI文件:



這個還沒找到好的方法,我目前的做法如下:


1、複製D:\PRO11\PRO11.MSI到D:\下,用Orca打開D:\PRO11.MSI,在表菜單中選TransForm——View Patch,載入D:\SP2\MAINSP2ff.msp後,我們可以看到很多綠線條,這些是SP2的新增項,如圖



2、然後再用Orca打開D:\PRO11\PRO11.MSI,將所有綠色項都新增進入,最後儲存即可。



以上做法操作繁瑣,並且容易出錯。因此最好做成批處理,代替部分手工操作,以節省時間,減少工作量。具體做法可以參考老外的這篇教程:



After reading a lot about slipstreaming SP1 to Office 2003 still I couln'd find a nice solution. So after many different approaches and reading a lot about MSI here comes another guide on slipstreaming

The Goal: build a fully functional Office 2003 SP1, using cache on setup, asking for serial, being only a bit larger than the original without SP1 & allowing for administrative install

What do you need:
- ORCA
- MSI 3.1 installed
- WSH 5.6 installed
- md5sum.exe (http://unxutils.sourceforge.net/)
- makecab.exe (Microsoft Cabinet SDK)
- sort2cabs.js (Download (5,5kB))
- Office 2003 CD(s)
- appropriate administrative updates
- some hard disk space and some time

What I did to create a working Office 2003 SP1:

1. Copy the office 2003 to the hard disk (referred from now on as X:\office2003). Remove all hidden and write-only attributes from files. Store all updates on hard disk (*.MSP, directory referred to is called x:\SP1). Make backups of X:\office2003\FILES\SETUP\*.INI

2. Apply Updates (slipstream) using the following Syntax:


CODE
msiexec /a X:\office2003\PRO11.MSI /p X:\SP1\MAINSP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\OWC11.MSI /p X:\SP1\OWC11SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\OWC10.MSI /p X:\SP1\OWC102003SP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="xxxxxxxxxxxxxxxxxxxxxxxxx"
msiexec /a X:\office2003\FP11.MSI /p X:\SP1\MAINSP1ff.msp MSINODISABLEMEDIA=1 SHORTFILENAMES=TRUE PIDKEY="yyyyyyyyyyyyyyyyyyyyyyyyy"
... (and so on for all your components)


if this is not working, try first making an administrative install and then copy the original msi-files over the altered and the apply the patches. This may be no longer necessary since MSI 3.x

After the Updates delete any cab files in X:\office2003

3. Create a subdirectory X:\office2003\sort and extract sort2cabs.zip here. Create subdirectories for every msi you installed before (-> X:\office2003\sort\pro11, X:\office2003\sort\owc10, X:\office2003\sort\owc11, ...). The following has to be done with every msi file:
- open with ORCA
- export tables CabinetDetail, Component, Directory, File, Media to the created corresponding directory

4. Copy XML files located at X:\office2003\FILES\SETUP to X:\office2003\sort. Now edit X:\office2003\sort\tabledirs.lst and X:\office2003\sort\xmlfiles.lst to match your need. tabledirs.lst lists all directories containing the exported tables from the msi packages (existence is checked in sort2cabs.js) and xmlfiles.lst lists all xml to edit (correct md5sums).

5. Open a command line (cmd) and change path to X:\office2003\sort. Start sort2cabs using folling syntax:
CODE
cscript sort2cabs.js

for successful completion md5sum.exe and makecab.exe should be placed in a directory listed in the path variable! ok, time for a cup of coffee

6. When the script stops you have to replace some tables in your msi packages. Use ORCA for this task:
- open zzz.msi with ORCA (replace zzz with msi package names)
- import tables called *.new.idt from X:\office2003\sort\zzz, replace the old ones, do not merge
- save (this is important, too)
now the script may continue (this stop is necessary for calculating the md5sums for the xml files)

7. That's nearly all, now copy the xml files from X:\office2003\sort to X:\office2003\FILES\SETUP, restore the backed up ini files in X:\office2003\FILES\SETUP and delete all files that were not originally on the office cd (ok, i wrote a bat file for copying all files to another location, which files are necessary you'll see on your cd ). Burn your new Office 2003 on a CD labeled 'OFFICE11'



It may be necessary to edit the msi package of MS Project when building an AIO CD. The table "Media" contains a column "VolumeLabel" which should be "OFFICE11". Make this change after step 1.

I know this is not as easy as just pressing a button, but sort2cabs.js is rather generic and may work with other msi packages. If not, try to alter the script

Here a short summary what the script does:
- read dirlist.lst and test for all necessary files in listed subdirs
- read all *.idt and combine information in arrays
- sort by media (cab files) and sequence numbers from msi packages
- renumber all files/set new sequence numbers to eliminate duplicate numbers (otherwise you cannot use compression)
- compress using makecab and ddf files to control process, sorting of files in cabs must be the same as sorting by sequence numbers in msi packages
- calculate md5 sums for cabs and other files listed in xml files located in X:\office2003\FILES\SETUP

This may help understanding the script. I added some comments, too.

Because I tested the whole process only with SP1 (maybe all later patches can be integrated) and not in detail please report problems here.






Trackback: http://tb.donews.net/TrackBack.aspx?PostId=712184
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2006-06-05, 08:50 PM   #3 (permalink)
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

瘦身 Office 2003安裝包縮減十倍
軟件越做越大,功能越來越豐富,但對於普通用戶,許多功能根本用不到。所以,很多電腦愛好者開始研究精簡軟件的方法——保留大多數常用功能,去掉絕大多數極少用的功能模塊,這樣可以極大地減少軟件安裝包體積。比如,一張600MB光碟大小的Windows XP,裡面有些功能(比如ATM模塊)對於大多數用戶是多餘的,於是出現了像nlite、XPlite等精簡程式。

  對於常用的Office 2003,同樣有很多功能我們平時用不到,比如.NET可編程性支持等,如果可以像精簡Windows XP那樣,去掉Office中不太常用的元件,就能打造一張Windows XP+Office 2003的安裝光碟。  

  下面我就來講解如何將600MB大小的Office 2003安裝包精簡,但又保留了你所需要的功能,筆者以Office 2003簡體中文版為例來說明,如果是Office 2000/XP,過程基本一樣,只是整合的修正檔不同。

  簡單步驟列表  

  第一步:準備工具:Office修正檔、ORK工具、編輯MSI文件的ORCA及Filemon工具;  

  第二步:使用管理員模式安裝Office;  

  第三步:整合Office的SP1修正檔;  

  第四步:使用ORK工具中的自定義安裝工具對Office軟件進行定制,僅保留常用功能,得到MST文件;

  第五步:用ORCA修改MSI,把MST文件訊息寫入MSI中;  

  第六步:使用Filemon及Excel,獲得安裝文件列表;  

  第七步:得到精簡後的安裝文件;

  第八步:測試。

  準備工具  

  1.Office 2003的SP1修正檔:http://download.microsoft.com/downlo...ile-chs.exe。
  2.Office 2003 的ORK工具:http://download.microsoft.com/downlo...果是Office XP,可以在它的光碟上找到適合的ORK工具。  

  3.MSI文件編輯器ORCA漢化版:http://www.newhua.com/cfan/200510/orca.rar。  

  4.文件監視工具Filemon:http://nj.onlinedown.net/soft/8986.htm。  

  安裝Office 2003  

  在安裝時Office 2003時,要使用管理員模式進行安裝,即打開「命令提示字元」視窗,進入光碟根目錄輸入setup/a,按照嚮導提示輸入序列號訊息,並設置好安裝路徑,如D:\Office。注意不要把Office的目錄選擇在Windows系統所在分區,這個要求是方便最後使用Filemon。

  整合Office的SP1修正檔  

  第一步:用WinRAR打開下載的SP1修正檔,把SP1修正檔解壓縮到D:\Office\sp1的目錄下(也可以參考http://support.microsoft.com/?kbid=1...縮)。  

  第二步:打開「命令提示字元」視窗,進入到D:\Office目錄,輸入「msiexec /p SP1\MAINSP1ff.msp /a pro11.msi SHORTFILENAMES=true /qb」(不含引號),Enter鍵後會出現收集訊息畫面,開始整合SP1。  

  小提示  

  參數中「/p」表示讓Windows Installer把修正檔程式整合到一個已經存在的MSI文件中;「/a」參數表示用管理員模式安裝;「shortfilenames=true」允許在升級過程中使用短文件名;「/qb」是為了在整合過程中只顯示最重要的步驟,而不會顯示那些次要的。

  第三步:完成後,D:\Office已經是整合了SP1的Office 2003版本。SP1目錄還有OWC102003SP1ff.msp和OWC11SP1ff.msp兩個修正檔用於更新Office Web元件,由於很多人並不需要安裝Office Web元件,所以不必整合這兩個修正檔。

  使用ORK定制Office  

  現在將使用ORK工具中的自定義安裝工具對Office進行定制,僅僅保留常用功能,得到MST文件。

  第一步:安裝ORK,點擊「開始」表菜單中的「程式→Microsoft Office→Microsoft Office Tools→Microsoft Office 2003 Resource Kit→Custom Installation Wizard」,執行ORK工具的自定義安裝嚮導,直接點「Next」進入第二步(步驟顯示在如圖1所示界面的右上角),要指定安裝路徑。

  第二步:使用「Browse」按鈕,選擇D:\Office\PRO11.MSI,點擊「Next」按鈕,在第三步選擇預定設置「Create a new MST file」,點擊「Next」。
__________________
http://bbsimg.qianlong.com/upload/01/08/29/68/1082968_1136014649812.gif
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2006-06-05, 08:53 PM   #4 (permalink)
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

  第三步:輸入MST文件,如D:\Office\promini.MST(見圖1),連續點擊三次「Next」,進入第七步。

  

http://myarticle.enet.com.cn/images/200509/1127826334163.jpg

  第四步:現在才進入真正的設置部分。這裡可以指定所要安裝的元件,在左側樹形列表中選擇要安裝的部件。點擊「Microsoft Office Word→.NET可編程性支持」,選擇「Not Available,Hidden,Locked」,此項就不會再安裝,用同樣方法去除「幫助」,以及Office共享功能下面的「中文可選用戶輸入方法」、「VBA 專案的數位證書」和「Microsoft 手寫元件」(見圖2)。其他專案是否安裝,可根據需要進行精簡,如果不需要Access,可徹底不安裝Access(僅Access就佔用50MB以上空間)。根據設置不同,最終安裝文件可以縮小到60MB~100MB左右,如果減少元件,最終的安裝包還可能更小。設定好精簡的專案後,點擊「Next」按鈕進入到下一步。

  

http://myarticle.enet.com.cn/images/200509/1127826341917.jpg

  第五步:選擇「Configure local installation source」,在「Product Key」欄中輸入Office的序列號,並勾選「I accept the tems in the License Agreement」,之後,一直點擊「Next」至結束,按「Finish」按鈕。  

  最終產生了一個名為PROmini.MST的文件。我們對Office 2003精簡後的「減肥訊息」和其他配置訊息,都記錄在這個文件裡面了。

  用ORCA修改MSI  

  現在要用ORCA將MST文件訊息寫入MSI文件中。  

  第一步:安裝並漢化ORCA,打開軟件,選擇表菜單中的「文件→打開」,打開D:\Office目錄下的pro11.msi。



 第二步:點擊表菜單中的「轉換→應用轉換」(見圖3),選擇剛才產生的promini.mst文件,然後選擇表菜單中的「文件→儲存變更為」,將文件儲存為pro11mini.msi。
  
http://myarticle.enet.com.cn/images/200509/1127826357141.jpg


  執行這個新得到的pro11mini.msi,就可以僅僅安裝我們開始選擇的那些元件,而不再安裝去掉的那些元件了。

  使用工具得到最小文件列表  

  現在D:\Office目錄下包含了Office 2003 SP1的所有文件,還沒有去掉安裝程式中不需要的文件。如何找出哪些是我們需要的文件,哪些是我們不需要的文件呢?也就是要確定Office 2003「減肥」之後,要保留哪些文件。現在就要開始刪除文件了。  

  第一步:修改D:\Office\pro11.msi的文件名字為pro11bak.msi,將前面得到的pro11mini.msi更名為pro11.msi,這樣是為了可以使用setup.exe執行Office的安裝。  

  第二步:執行Filemon,取消「文件→捕獲事件」項,然後按Ctrl+X,清除記錄,再選擇表菜單中「卷」項,確認勾選了「卷D(FIXED)」的勾選(見圖4)。按Ctrl+E,重新啟動文件監視。

  
http://myarticle.enet.com.cn/images/200509/1127826359806.jpg


  第三步:執行D:\Office\setup.exe,安裝精簡後的Office,選擇「全部安裝」,把我們所要求的功能在系統中安裝一遍,看看到底哪些文件被安裝了。注意,不要將Office安裝到D盤。  

  第四步:安裝完成後,切換回Filemon,按Ctrl+E,關閉文件監視。  

  第五步:現在我們就根據Filemon的記錄來分析Office 2003安裝程式在安裝過程中到底需要哪些文件。在Filemon中點擊表菜單中的「文件→另存為」,將記錄儲存為filemon.txt。
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2006-06-05, 08:54 PM   #5 (permalink)
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

 第六步:打開Excel,拖入剛剛儲存的filemon.txt,可以看到filemon.txt在Excel中分成了整齊的7列(A-G),其中文件名在E列(見圖5)。我們只保留第5列也就是E列,將其他列刪除,這樣僅僅剩下了需要處理的文件名。

  
http://myarticle.enet.com.cn/images/200509/1127826463567.jpg


  第七步:在Excel中點擊表菜單中的「資料→篩選→高階篩選」,然後勾選「選擇不重複的記錄」,「確定」後,就可以篩選出不重複的資料。將這些資料複製到一個文本文件中,並命名為Officefilelst.txt,這樣就得到了Office精簡版安裝時候所需要的全部文件列表。  

  這裡的步驟僅限於當前操作系統安裝Office精簡版的文件列表,為了讓最後製作的安裝文件可以執行在所有操作系統中,還需要在不同系統中安裝一次,將所有的文件列表進行合併,得到最終的文件列表。一般來說,能滿足Windows 2000安裝,大部分都可以滿足Windows XP/2003的安裝,如果條件不足,也可以直接用Windows 2000安裝時製作的文件列表。  

  獲得精簡後的最終文件  

  下面,我們就要編寫批處理,從而得到最終的Office精簡版。目標是從D:\Office複製Office精簡版需要的文件到E:\Officemini\Office中。批處理內容如下(可根據實際情況路徑):

  xcopy D:\Office E:\Officemini\Office\ /T

  for /F %%i in (Officefilelst.txt) do copy %%i E:\Officemini%%~pnxi  

  之後,執行該批處理文件,全部完成後,E:\Officemini \Office中就是打了SP1修正檔的精簡版Office 2003。

  測試你的成果  

  在不同的全新安裝的操作系統進行測試,看看是否有缺少文件的情況發生。經筆者測試,一般是不會缺少文件的。怎麼樣,還不快去定制你的Office安裝包?
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2006-09-12, 01:00 AM   #6 (permalink)
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

Office 2003 整合SP2的方法。




整合Office的SP2修正檔
一、用WinRAR打開下載的SP2修正檔,把SP2修正檔解壓縮到E:\Office\sp2的目錄下(也可以參考http://support.microsoft.com/?kbid=1...解壓縮)。
二、打開「命令提示字元」視窗,進入到E:\Office目錄,輸入「msiexec /p SP2\MAINSP2ff.msp /a pro11.msi SHORTFILENAMES=true /qb」(不含引號),Enter鍵後會出現收集訊息畫面,開始整合SP2。
提示:
參數中「/p」表示讓Windows Installer把修正檔程式整合到一個已經存在的MSI文件中;「/a」參數表示用管理員模式安裝;「shortfilenames=true」允許在升級過程中使用短文件名;「/qb」是為了在整合過程中只顯示最重要的步驟,而不會顯示那些次要的。





方法一:

1、把office安裝文件複製到一個資料夾中,比如e:\office2003

2、接著到http://download.microsoft.com/downlo...本的office 2003的sp2文件:Office2003SP2-KB887616-FullFile-CHS.exe。

3.下載後用winrar解壓縮sp2文件到一個目錄中,比如e:\sp2

4、最後在命令視窗中輸入:

e:\sp2\MAINSP2ff.msp /a e:\office2003 \PRO11.MSI並Enter鍵,此時就開始了整合工作。

當整合完成後就就可以將這個資料夾燒錄為光碟,以後通過此光碟安裝的office2003就是帶了sp2修正檔的office2003了。

方法二:

上面的方法雖然簡單,但是有一個問題就是就是如果你的序列號有問題的話,上面的方法將會失敗,那麼就只有使用先解壓原始的安裝光碟,然後在升級的方法來處理。

1.將office2003安裝光碟放入光區中,然後在命令視窗中輸入 x:/setup.exe \並點擊「確定」,其中x是光碟的磁碟代號。隨後將看到安裝視窗,此時輸入用戶名,序列號和儲存位置,接著點「下一步」。隨後開始對原始安裝盤解壓。

2.完成解壓縮後在命令視窗輸入:

msiexec /p e:\SP2\MAINSP2ff.msp /a e:\OF\PRO11.MSI SHORTFILENAMES=1

就開始進行更新了,其中of是解壓後原始安裝光碟資料夾,SP2是解壓sp2後的資料夾。

3.在完成更新後of資料夾大小為900MB左右,如果有DVD那麼就可以直接對of資料夾燒錄了,以後通過DVD安裝的office2003就是帶sp2修正檔的了。但是如果想燒錄為一張CD-ROM的光碟還需要下面的步驟。

4.從WINRAR中打開升級後的Office資料夾及of資料夾,然後點擊「文件/反向選擇」表菜單,選中所有文件及子資料夾,然後右擊點擊「新增」。

5.在出現的視窗中選擇「創建自解壓格式檔案文件」,並點擊"高階/自解壓選項"進入高階視窗。

6.在高階視窗的「一般」視窗下的「安裝程式/解壓後執行」中輸入「setup.exe」,在「模式」頁中選擇「解包到臨時資料夾」和「覆蓋所有文件」兩項。

7.在「文字和圖示」中輸入自解釋放視窗標題, 如「Office2003 SP2啟動安裝盤」,在「模塊」中選中「Default.sfx Windows 圖形 RAR 自解釋放格式漢化版」(圖),完成上面操作後點「確定」,這樣在等待一段時間後就會產生500MB左右的 Office XP SP2壓縮安裝程式。

現在你可以將這個壓縮文件燒錄到CD-ROM中,當以後執行這個自解壓程式完成後,就會啟動office2003的setup進行安裝,其過程和以前的安裝一樣。

此帖於 2006-09-19 01:39 AM 被 psac 編輯.
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
 


主題工具
顯示模式

發表規則
不可以發文
不可以回覆主題
不可以上傳附加檔案
不可以編輯您的文章

論壇啟用 BB 語法
論壇啟用 表情符號
論壇啟用 [IMG] 語法
論壇禁用 HTML 語法
Trackbacks are 禁用
Pingbacks are 禁用
Refbacks are 禁用


所有時間均為台北時間。現在的時間是 03:49 AM


Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2024, Jelsoft Enterprises Ltd.


SEO by vBSEO 3.6.1