MSFN Forum: buckeyeXP's Office Shrink Techniques? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

buckeyeXP's Office Shrink Techniques? Rate Topic: -----

#1 User is offline   <SparTacuS> 

  • I want to know . . . everything!
  • PipPip
  • Group: Members
  • Posts: 205
  • Joined: 24-April 04

Posted 10 February 2005 - 05:35 PM

I have used Office shrink since its first version and think it is great. So great in fact that I would love to be able to do the same with many other MSI/MST based installations.
I gather from other posts that buckeyeXP is no-longer around so - is anybody else "in the know" about the way that his office shrinker works. Especially, would it be possible to build a generic AnyMSI.Shrinker?


#2 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 February 2005 - 06:35 PM

Try reading all his old posts, and you might get a full view of how it works (you can see all his posts from a link in his profile).

Anyways, let me tell what I can:
Basically the tool is an AutoIT script. Which is able to do file-moving/copying operations, and auto-click dialog boxes.
Now when you select the main setup MSI and MST, this tool copies both those files to a different folder, along with whatever files are known to to be essential to setup Office. And then it starts the setup with a switch to use that MST. Now as the setup runs, it complains that file1 is missing, file2 is missing, etc. buckeye's script captures the text in the dialog, and copies over the required file from the source folder to the new slimmed location (where it originally copied your setup.exe and MST). Once that file is copied over, it is no longer missing, so the script clicks the retry button (so now the file is found, and setup continues). After this, the next file missing prompt that comes up, is also dealt with in the same way. This carries on till the end.
This way, the MST dictates what files are needed and only those files are selected from the install source, and these are recorded by the OfficeShrink tool.






Some files already exist, so obviously setup does not throw up the file missing dialog and so the script is unable to capture all the files necessary. This is why people end up still having some files missing when they do a clean unattended install with the incomplete set of files. Its because of this, that buckeyeXP recommends you run the shrinker on a clean windows installation.

One more thing you might know, is that lot of people in that thread are complaining about a 7 MB install folder. That's happening because the base setup.exe and MST got copied, but some unexpected situation prevented the script from handling it properly, so it just exits after just those files alone.

I'm relating the above two to explain how it all works, so that whoever makes a similar tool will know it and prevent errors in handling unexpected situations.

Hoping this helps....

#3 User is offline   <SparTacuS> 

  • I want to know . . . everything!
  • PipPip
  • Group: Members
  • Posts: 205
  • Joined: 24-April 04

Posted 10 February 2005 - 06:53 PM

Thanks for the info prathapml.
I'm only just learning AutoIT so don't expect much for a long time, but I did follow your explanation and I believe that I may be able to make a start.
Will also follow your advice re buckeyeXP's posts - I will go through them again - more carefully this time.

#4 User is offline   buletov 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 518
  • Joined: 08-September 04

Posted 11 February 2005 - 03:59 AM

prathapml, on Feb 11 2005, 01:35 AM, said:

Anyways, let me tell what I can:
Basically the tool is an AutoIT script.  Which is able to do file-moving/copying operations, and auto-click dialog boxes.
Now when you select the main setup MSI and MST, this tool copies both those files to a different folder, along with whatever files are known to to be essential to setup Office. And then it starts the setup with a switch to use that MST.  Now as the setup runs, it complains that file1 is missing, file2 is missing, etc.  buckeye's script captures the text in the dialog, and copies over the required file from the source folder to the new slimmed location (where it originally copied your setup.exe and MST). Once that file is copied over, it is no longer missing, so the script clicks the retry button (so now the file is found, and setup continues). After this, the next file missing prompt that comes up, is also dealt with in the same way. This carries on till the end.
This way, the MST dictates what files are needed and only those files are selected from the install source, and these are recorded by the OfficeShrink tool.

THIS IS BRILIANT!
What a great idea...

#5 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 February 2005 - 08:34 AM

indeed, buckeyeXP made a brilliant tool. :yes:

#6 User is offline   j_stam_84 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 17-April 05

Posted 02 June 2005 - 11:47 AM

I believe this to be possible for sure!

Actually, I'm working on it right now.
The problem with ShrinkOffice is that it retrieves the handle for the window(s) based on the title and a piece of the text in the window ('cause the window titles are the same.. ). This approach has a couple of disadvantages :

- You need to define the window titles which differs per Office version
so when you want to support every setup, you'll need to manually add support
for it

- It's bound to Office and Office alone

This is actually but a guess... Since the sourcecode isn't available (well... I couldn't find it anyway), there's no way to tell for sure... But if you're familiar with AutoIT
you'll agree with me.

The version I'm working on, written from scratch ofcourse, takes different approach to retrieve those handles and thus avoiding the problem with
the difference in Office versions and languages...

It already works for Office XP Professional (Dutch) and it'll soon be tested on Office 2K3 Professional (Dutch aswell)... But since I don't have more Office versions I'll add a binary (see this topic)which generates a log when running ShrinkOffice.
(You have to run it simultaneously with "setup TRANSFORMS=yourmst.mst /qb" <-- no "-" at the end!).If anybody is interested, download it and post the results (or problems ) here.

That way I can check if I'm right and if it'll work on every setup. I *think*
that it won't work for Pre-2K versions (if they can be installed in the same way first of all) but you're welcome to try .

If that's the case, I'll finish the script and try to add support for a Universal Shrinkage Tool.
Heck, if anybody is interested in helping out, I'll even post the sourcecode in a couple of days/weeks so anybody can contribute !

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy