Jump to content

Office Shrinker [reduce source of o2k3/xp/2k]


buckeyeXP

Recommended Posts


@farte, with installed Excel, Word, Outlook and newest updates its 125 office + 15MB updates...all compressed with 7zip in self-extracting unattended installation makes that 47MB !

@squallgreg, this script/proggy is reading from installation only needed files and copies them separatelly for specific msp file.

In order to enduce installation you need to uninstall office but even then some system files will be allready installed and next time you reinstall windows you'll need to run shrink one more time to fill up the holes.

Link to comment
Share on other sites

@buckeyeXP, it seems that it stops only after bigger files are being copied and when it waits to long for automatic "retry".

Small files are warping without any problem, as long as retry window don't wait to long.

Maybe some latency that you put for waiting next file, and if there is none (or waiting to long) it thinks that it's over ?

Link to comment
Share on other sites

@nuhi >> ok thanx. But I still dont understand why office must be uninstalled. That means, you must run shrink right after installing windows (to be sure it will "shrink" it right), then make your unattend office CD and reinstall everything. Am I right ?

Well, I wanted to make a full unattend guide for office 2003 (admin point + splistream + mst + shrink) for newbies in french... I think its too difficult for them now !

Link to comment
Share on other sites

@squallgreg, yes, that's about right, because some runtimes being left behind even after uninstallation.

Maybe there can be a solution provided by you, just reinstall windows and make notes which directories are needed, i think they were mainly in MSShared folder...then it will not be difficult to instruct them to copy that after shrinking.

(of course there was some other folders but i bet they are standard for every installation)

edit: maybe this is buckeyeXP's job :)

Link to comment
Share on other sites

Reinstall windows and run shrinked copy of office, it will report missing files, then you see in which directories they are in.

Or use VirtualPC or VMWare like me.

Link to comment
Share on other sites

Well managed to shrink to 169 mb which is fantastic that was word,outlook,powerpoint and exel ..... lots of errors messages but stills stops during installation

@nuhi how did you go about compressing them never used 7zip shrink.....would be greatful if you know where i could do that with winrar.... did you need switches to self extract before installing office...

cheers

Link to comment
Share on other sites

@farte, Winrar is easier and you only gain couple of mb using 7zip.

Make a batch file with notepad, lets say setup.cmd containing unattended command for installation of office, mine is:

start setup.exe TRANSFORMS=setup.mst /qb-

(where setup.mst is your mst file)

Make self-extracting exe with winrar and go to sfx-advanced options, set it up to run a batch file (setup.cmd) after decompresion in temporary folder(there is an option for that).

And set it up to overwrite files and hide start dialog.

Now you should have one exe file which installs office with just double clicking it.

Link to comment
Share on other sites

  • 2 weeks later...

ok sorry guys i have been really busy the last couple of weeks. But i think i have found a solution to the problem of it quiting prematurely. i will try to have that up by the end of the week. things are hetic around here.

@squallgreg: Also if you want me to try to make it work with a non clean version of windows maybe you could do some tests and compair the logs to see what files need to be copied. The only thing is that it would not work if office was already installed at one point, because updated file are different.

Link to comment
Share on other sites

  • 3 weeks later...
@farte, Winrar is easier and you only gain couple of mb using 7zip.

Make a batch file with notepad, lets say setup.cmd containing unattended command for installation of office, mine is:

start setup.exe TRANSFORMS=setup.mst /qb-

(where setup.mst is your mst file)

Make self-extracting exe with winrar and go to sfx-advanced options, set it up to run a batch file (setup.cmd) after decompresion in temporary folder(there is an option for that).

And set it up to overwrite files and hide start dialog.

Now you should have one exe file which installs office with just double clicking it.

I've had rather spotty results extracting to a temp folder. I've had more than one occasion where the files get deleted before setup is finished. Rather annoying :):rolleyes:

Link to comment
Share on other sites

Just try, and didn't work. Although i uses a different languages verson of Office 2k3. But it didn't even start.........

2004-05-10 17:09:44 : <---  LOG OPENED  --->
2004-05-10 17:10:13 : Office Source : C:\Office\
2004-05-10 17:10:37 : Office Target : C:\o\
2004-05-10 17:10:41 : Office Setup EXE file : SETUP.EXE
2004-05-10 18:00:14 : Office Setup MST file : New Custom Setup File.MST
2004-05-10 18:00:14 : Setup File Version:11.0.5510.0
2004-05-10 18:00:14 : Setup File Version: Office 2003
2004-05-10 18:00:14 : <---------------------------------->
2004-05-10 18:00:14 : Source Files Necessicary for setup Copied to: C:\o\FILES\SETUP\*.*
2004-05-10 18:00:14 : .
2004-05-10 18:00:14 : ..
2004-05-10 18:00:14 : SETUP.INI
2004-05-10 18:00:14 : <---------------------------------->
2004-05-10 18:00:14 : <---------------------------------->
2004-05-10 18:00:14 : Source Files Necessicary for setup Copied to: C:\o\*.*
2004-05-10 18:00:14 : .
2004-05-10 18:00:14 : ..
2004-05-10 18:00:14 : AUTORUN.INF
2004-05-10 18:00:14 : FILES
2004-05-10 18:00:14 : New Custom Setup File.MST
2004-05-10 18:00:14 : OWC11.MSI
2004-05-10 18:00:14 : PRO11.MSI
2004-05-10 18:00:14 : README.HTM
2004-05-10 18:00:14 : SETUP.EXE
2004-05-10 18:00:14 : SETUP.HTM
2004-05-10 18:00:14 : <---------------------------------->
2004-05-10 18:00:14 : Command Run: C:\o\SETUP.EXE /qb /laceimow "C:\office2.log" TRANSFORMS=C:\o\New Custom Setup File.MST
2004-05-10 18:00:15 : Waiting For 'Windows Installer' Window to appear....
2004-05-10 18:13:34 : <--- PROCESS TIMED OUT --->
2004-05-10 18:13:34 : <--- TIME Shrink Program running: 64 min
2004-05-10 18:13:34 : <--- NEW SIZE ON DISK: 7 MB
2004-05-10 18:13:34 : <---LOG CLOSED  -->
2004-05-10 18:13:39 : <---  LOG OPENED  --->
2004-05-10 18:13:43 : Values Retrived from shrink.ini
2004-05-10 18:13:43 : Setup File Version: Office 2003
2004-05-10 18:13:43 : <---------------------------------->
2004-05-10 18:13:43 : Source Files Necessicary for setup Copied to: C:\o\FILES\SETUP\*.*
2004-05-10 18:13:43 : .
2004-05-10 18:13:43 : ..
2004-05-10 18:13:43 : SETUP.INI
2004-05-10 18:13:43 : <---------------------------------->
2004-05-10 18:13:43 : <---------------------------------->
2004-05-10 18:13:43 : Source Files Necessicary for setup Copied to: C:\o\*.*
2004-05-10 18:13:43 : .
2004-05-10 18:13:43 : ..
2004-05-10 18:13:43 : AUTORUN.INF
2004-05-10 18:13:43 : FILES
2004-05-10 18:13:43 : New Custom Setup File.MST
2004-05-10 18:13:43 : OWC11.MSI
2004-05-10 18:13:43 : PRO11.MSI
2004-05-10 18:13:43 : README.HTM
2004-05-10 18:13:43 : SETUP.EXE
2004-05-10 18:13:43 : SETUP.HTM
2004-05-10 18:13:43 : <---------------------------------->
2004-05-10 18:13:43 : Command Run: C:\o\SETUP.EXE /qb /laceimow "C:\office2.log" TRANSFORMS=C:\o\New Custom Setup File.MST
2004-05-10 18:13:43 : Waiting For 'Windows Installer' Window to appear....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...