Help - Search - Members - Calendar
Full Version: [solution] Installing Office 2k3 On T-12
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Nanaki
Well, I've been using this for a while, and looks like there's more people wanting to use it. It's a little script making it possible to install Office at T-12. Maybe on other times, dunno, haven't tested those. Just be happy by the fact Office'll install perfectly fine.

Alright, another thing, only the versions I write here will work, if it isn't listed, don't try to use a script of another version, as it will NOT WORK, no doubt.

Make sure your transform is named "UNATTENDED.MST". Thanks. smile.gif

Now, the apps, place the needed version in the root office folder, right next to "setup.exe" and "unattended.mst":

*links moved a bit down*

Two notes when using this:
  • For the love of god, only use this when you experience problems. It could very well be the installation works without this script!
  • There's a downside to this method, being that if you want to launch Office Update, you need to insert the disc. This happens because the installation files aren't cached (this saves disk space tho, I always manually delete those files anyway).
Before you start writing this script yourself, take a look if you can't use one of these precompiled scripts:

Office 2003 English Professional Edition
Click to view attachment

Office 2003 English Standard Edition
Download here (thanks to pontiacmn for this one)

Office 2003 Dutch Professional Edition
Download here

Alright, let's get started. If you don't want to read all this crap, just take a look at the simplified version in the attached template:

Click to view attachment

-----------------------------------------------------------------------------------------------
Tutorial

For the explanation, I will use the Office 2k3 ENG Professional script as a template.

<span style='font-size:21pt;line-height:100%'>1</span> First, learn to write and compile an AutoIT-script. See this topic for a decent explanation.

<span style='font-size:21pt;line-height:100%'>2</span> Here's the simple script:

CODE
Opt("SendKeyDelay", 1)
Opt("WinWaitDelay", 1)

Run("SETUP.EXE TRANSFORMS=Unattended.MST /QB")

WinWaitActive("Windows Installer")
WinSetState("Windows Installer", "", @SW_HIDE)

WinWaitActive("Microsoft Office Professional Edition 2003", "1406")
Send("!I")

WinWaitClose("Microsoft Office Professional Edition 2003")


The first two lines (Opt...) makes sure the script runs as fast as possible.

The third line (Run...) runs the setup, using the specified MST-file. Note that the /QB parameter is used. When /QN is used, the installation will rollback and cancel when an error occurs. We don't want this to happen of course.

The fourth line (WinWaitActive...) waits until the window with the title "Windows Installer" pops up. This is a line you shouldn't change, as all .MSI-installers start out with this window.

The fifth line (WinSetState...) makes that same window invisible, so that no installer will be seen.

The sixth line (WinWaitActive...) waits until the window with title "Microsoft Office Professional Edition 2003" and error code "1406" pops up. The title must be modified to the language version you use. You can only get to know this title by launching setup with /QB and letting the error occur.

The seventh line (Send...) sends ALT+I. When you hold ALT when the error dialog occurs, you see that one letter per button is underlined. You need to press ALT plus the underlined letter to activate that button. The button we want to press is "Ignore". Every language versions has a different name for that button, so also a different underlined letter. Please don't remove the "!", this represents the ALT.

The eighth line (WinWaitClose...) waits until the window called "Microsoft Office Professional Edition 2003" closes. This is the same window as "Windows Installer", but has renamed itself. This title also differs from language version to version. This line is needed because otherwise the script will exit too soon, meaning that RunOnceEx/Batchfile/blah will continue, even while Office is still installing.

-----------------------------------------------------------------------------------------------

This post probably needs some updating, but I'll leave it like this for now. smile.gif
Alanoll
I"d like to know what you did tongue.gif
Nanaki
Alright, I'm less tired now. tongue.gif

Well, when Office is installed with /QN, it doesn't install. The reason? It gives an error, and because of that error the whole install is aborted. "Crap!" smile.gif
But when the install is launched with /QB or /QR, the error is shown. It's an error revolving around some registry entry. That registry entry is needed for Error Sending. That same registry entry is GENERATED every time you launch Office anyway! So this is basically an AutoIt script which launches the setup with /QB, hides the spawned window and clicks "IGNORE" when the error pops up. Hey, it works! smile.gif

I'll put up the simple script here soon, so anyone can use it. ^^
Alanoll
did you perhaps try to just import the required registry key? it would stink if it was that simple tongue.gif
Nanaki
Yup, I tried editing the key before installing Office, didn't work.

I could write and read to it then though... stupid Office smile.gif
gmx
whats the advantage of installing office at t-12?
Nanaki
I install anything at T-12. Everything's applied under Default User and Administrator, it looks waaaay better (with XPlode) and it's a bit faster (no reboot required after install) ^^
nujackk
just to be sure I understand this correctly I only need to run this exe and do not need to add the transform=blah blah to the batch? or do I still need to add it ?
And I assume this is just an Autoit Script? What is the passphrase so I can decompile it and have a look, if you don't mind?
Nanaki
No parameters are needed.

Anyone care testing this version? It should work on any language-version now (well, using the Latin character set tongue.gif).

It doesn't have a passphrase, but AutoIt is pretty easy to hack 'nyway. tongue.gif a** I previously said, I'll explain the code when I have the time (not that it's too hard).
nujackk
I have a question

Can I run this via the setupparams in winnt.sif. which runs at T-9 ?
Nanaki
Sure, if it gives an error there.

I'll explain this script soon btw, when I have some time.
nujackk
I'll give it a try.

And one other question, do you know if not hiding the cmd window would interfere with the script?
Because the first time I ran it it just sat there until i minimized the window and saw the error message behind it, had to click cancel myself. ( I kept unhidden as a way to keep track of progress as I had the batch run 2 diff files and wanted to see if both were executed)
RideGuy
oops.
expert_1st
QUOTE (Nanaki @ Apr 17 2005, 03:41 AM)
Sure, if it gives an error there.

I'll explain this script soon btw, when I have some time.
*


We wait whistling.gif
edusnow
Hi,...
I use your *.exe file to make a silent install of my Office 2003 Professional. It works good, but,...
The application install goods, but then the system stops. I need to make a reset to the pc, and then RunOnceEx.cmd works again, office didnīt install (its alredy done) and the other applications still installing in order.
This is my RunOncEx.cmd

-------------------------------
cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Office 2003" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Office_2003\officeexecENGpro.exe" /f

REG ADD %KEY%\008 /VE /D "Office Proofing Tools 2003" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\OfficePTools\ptksetup.exe TRANSFORMS=pt_una.mst /qb-" /f

,... and so on

-------------------------------

What do i need to do more?

Thanks
snow
edusnow
I,...
I have made another attempted to install Office. I have the same result "for the 8š time sad.gif ". I made a CRT+ALT+DEL, instade a reset and Windows continuos installing and the *.exe icon appears on the left side of the clock, saying that is paused. If i "unpause" nothing happends.

blushing.gif

what can i do?
thanks
snow
Nanaki
Well, it's probably because my script doesn't detect the exit of the installer correctly.

I completly forgot about this, I'll try to explain this script asap.
ZileXa
see the 7z method here:
http://www.msfn.org/board/index.php?showto...%207zip&st=426#

could I just modify the config.txt, not using a cmd file at all:
config.txt
CODE
;!@Install@!UTF-8!
RunProgram="officeexecNLpro.exe"
;!@InstallEnd@!


(assuming I don't need StartX.exe for this).
------------------------------------------------------------------------------------------------------------------------------------------
EDIT
tried just adding officeexecNLpro.exe in config.txt and it works fine.
Except the file never kills itself when install is finished... so RunOnceEx doesn't contiue, have to use CTRL+ALT+DEL and kill the proces "officeexecNLpro.exe".

Please post a fix or give your code!

I have autoit3.exe in my System32 folder already (need it for other tasks) so won't need a .exe (i think... would need to configure the 7zip sfx to start autoit3.exe with the au3 file... but I think this can only be done using StartX.exe.... so using your exe would be easier anyway.)
Nanaki
Updated and explained in first post. Now you can see how simple the script is.
I actually had a multilingual version around, but I lost it somehow. Myabe I'll recreate it sometime, when I have time. smile.gif
ZileXa
will test when the new ryanvmpack arrives...

the older version has worked fine with me.
gummy2
trying to install office 2003 FrontPage at t-12

Nanaki while using your scrip in xplode using XPlode-SelectInstall.xml , installing at the t-12 stage , I get
error 1406 - value DW 0200 registry key Software\Microsoft\PCHealth\ErrorReporting\DW\Installed

I have also looked in Google and done a search to try and get a answer but all I found was this and similar things with no answer as yet , or I missed it

http://www.msfn.org/board/index.php?act=ST&f=70&t=27170

http://www.ryanvm.net/forum/viewtopic.php?t=830

can you help please
Nanaki
Only FrontPage? Then you should follow the "tutorial" I posted above, it should work normally.
RogueSpear
I've been installing Office 2003 from svcpack.inf for close to a year now with a silent switchless installer. The only real trick needed was to delete that error reporting registry key from the .msi file.
mickmack
to install office at 13/12 stage you can run this code. in regfile or in sfx

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting\DW]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting\DW\Installed]
Daimao
So I just put those 3 lines in a reg file and make it run before the office setup?
El Matador Y Tyrannos
Hello people !

I have read this topic, and I'm interrested in eliminate the error 1406 on an unattended installation of Win XP + Office.
So, I saw this :
QUOTE (nujackk @ Apr 17 2005, 12:27 AM) *
I have a question

Can I run this via the setupparams in winnt.sif. which runs at T-9 ?


QUOTE (Nanaki @ Apr 17 2005, 03:41 AM) *
Sure, if it gives an error there.

I'll explain this script soon btw, when I have some time.

I'm very interrested in using this method unstead of using AutoIt... How can I ?
ZileXa
What you are quoting IS the autoit method, the other method is with a simple regtweak few posts above your message.
SebhaMate
Takecare the officeexec_ENG_PRO.zip cntain Trojan program Trojan-Downloader.Win32.Agent.ahvv according to Kaspersky with March 2009 update




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.