The easier way to deploy Office 2007 using GPO. After a lot of research for tring to find a way to deploy Office 2k7 I came across a way that worked exactly the way I wanted it to. I wanted to copy Office folder down to the local machine and then run the install from there, but I also wanted to use the MSP file for the settings. Most of the stuff I saw said you had to edit the config.xml to deploy a custmized office with GPO, but not all of the settings are avaible in the xml file. This how I plan to do it and what I have tested thus far.
Create an MSP file and place it in the updates folder.
Edit the config.xml with only the following options:
<Configuration Product="Enterprise">
<Display Level="NONE" CompletionNotice="no" SuppressModal="no" AcceptEula="no" />
<Logging Type="standard" Path="%temp%" Template="Microsoft Office Enterprise Setup(*).txt" />
<LIS CACHEACTION="CacheOnly" />
</Configuration>
Then create a Computer Startup Script with the following:
Script Name: \\server_name\Office_2007\setup.exe
Script Parameters: /config \\server_name\Office_2007\Enterprise.WW\Config.xml
Now when the computer boots up it will run the setup BUT it won't acutally install anything it just copies everything in the share to the local machine. By default it is stored in "C:\MSOCache\All Users" and makes the folder hidden.
Here's the best part, now that' it's local and it copied everything, including the MSP file, all I need to do is create another computer startup script (I tested the install with a startup script, but I would acutally like to do the install through a shutdown script) to launch the install locally and it will grab all the settings from the MSP file.
I used this startup script to launch the local install:
"C:\MSOCache\All Users\{940120000-0030-0000-0000-0000000FF1CE}-C \setup.exe"
The folder labeled with all the numbers is auto generated and you can see more about it in the links below.
One important thing to note, in the GPO that actually does the install you will also want to change the Maximum wait time setting in "Computer Configuration\Administrative Templates\System\Scripts" to something higher than the default 600 secs (10Min). If you leave the default setting, the install will run but after it completes, everything will go back to the way it was. When it happed to me it would take like 45mins to run, I could see it remove the Office 2003 icons but at the end they were right back. Therefore, I set the maximum time to 45mins and it ran a lot faster. Plus it never gave me the option to login it just said "running startup scripts" and when it was done it rebooted.
Here is the question I have. What might be the best way to add some logic to my very very basic script and what might be the best logic to add? I'm not very good at programming or scripting but my thoughts were something along the lines of the following:
I would use a .cmd file because it's the easiest for me
<<The script to copy the installation source>>
IF %Program Files%\microsoft office\office 12 EXISTS
THEN end
ELSE \\server_name\Office_2007\setup.exe /config \\server_name\Office_2007\Enterprise.WW\Config.xml
IF C:\MSO\ EXISTS
THEN end
ELSE \\server_name\Office_2007\setup.exe /config \\server_name\Office_2007\Enterprise.WW\Config.xml
<<The script to launch the install>>
IF %Program Files%\microsoft office\office 12 EXISTS
THEN end
IF C:\MSO\ EXISTS
THEN "C:\MSOCache\All Users\{940120000-0030-0000-0000-0000000FF1CE}-C \setup.exe"
ELSE \\server_name\Office_2007\setup.exe /config \\server_name\Office_2007\Enterprise.WW\Config.xml
THEN "C:\MSOCache\All Users\{940120000-0030-0000-0000-0000000FF1CE}-C \setup.exe"
(I know some of lines are wrong, but I hope can see what I'm trying to accomplish...)
Also it would be really great if I could find a way to write the log file specified in the xml file to a central location by computer name.
Thanks
References
http://technet2.microsoft.com/Office/en-us/library/7897ccea-d9e2-4cdf-bb63-53090da8fd0d1033.mspx?pf=true
http://technet2.microsoft.com/Office/en-us/library/ff0a01a5-33d8-407c-ac52-50edccb327861033.mspx?pf=true
http://technet2.microsoft.com/Office/en-us/library/e16af71c-fed4-40da-a886-95e596c3999e1033.mspx?pf=true
**I apologize for not doing futher research before posting. The link that Manning provided looks like it might be the script I was looking for. I think can modify this sample to accomplish what I'm trying to do.
[code:1]setlocal
REM ************************************************** *******************
REM Environment customization begins here. Modify variables below.
REM ************************************************** *******************
REM Get ProductName from the Office product's core Setup.xml file.
set ProductName=Enterprise
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server\share\Office12
REM Set ConfigFile to the configuration file to be used for deployment REM (required)
set ConfigFile=\\server\share\Office12\Enterprise.WW\c onfig.xml
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server\share\Office12Logs
REM ************************************************** *******************
REM Deployment code begins here. Do not modify anything below this line.
REM ************************************************** *******************
IF NOT "%ProgramFiles(x86)%"=="&qu ot; SET WOW6432NODE=WOW6432NODE\
reg query HKEY_LOCAL_MACHINE\SOFTWARE\%WOW6432NODE%Microsoft \Windows\CurrentVersion\Uninstall\%ProductName%
if %errorlevel%==1 (goto DeployOffice) else (goto End)
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End
Endlocal
[/code]


LinkBack URL
About LinkBacks
Reply With Quote
eployOffice