查看單個文章
舊 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, 收花文章: 1625 篇, 收花: 3196 次