Difference between revisions of "MS Office 2007"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Silent Uninstallation of Office 2007)
Line 25: Line 25:
 
Before a <remove /> option can be applied, a silent uninstallation file must be created on the share where the installation files exist. Navigate to the Version.WW folder (Enterprise.WW or ProPlus.WW for example). Copy the config.xml and name it silentuninstall.xml. Edit the silentuninstall.xml file to resemble the following code:
 
Before a <remove /> option can be applied, a silent uninstallation file must be created on the share where the installation files exist. Navigate to the Version.WW folder (Enterprise.WW or ProPlus.WW for example). Copy the config.xml and name it silentuninstall.xml. Edit the silentuninstall.xml file to resemble the following code:
  
<code>
+
<source lang="xml">
 
<Configuration Product="Enterprise">
 
<Configuration Product="Enterprise">
 
     <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
 
     <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
 
</Configuration>
 
</Configuration>
</code>
+
</source>
  
 
Now add the following line to your packages.xml file:
 
Now add the following line to your packages.xml file:
  
<code>
+
<source lang="xml">
 
<remove cmd='"%SOFTWARE%\Office 2007\setup.exe /uninstall [Version] /config  %SOFTWARE%\Office2007\[Version].WW\silentuninstall.xml />
 
<remove cmd='"%SOFTWARE%\Office 2007\setup.exe /uninstall [Version] /config  %SOFTWARE%\Office2007\[Version].WW\silentuninstall.xml />
</code>
+
</source>
  
 
===Integrate Service Pack 2 into the installer===
 
===Integrate Service Pack 2 into the installer===

Revision as of 12:56, 18 May 2009

This is the silent installer for Office 2007 with a.MSP generated by running: setup.exe /admin

<package id="office2007" name="Microsoft Office 2007" revision="2007" reboot="false" priority="0">
  <check type="uninstall" condition="exists" path="Microsoft Office Enterprise 2007" />
  <install cmd='"%SOFTWARE%\Office 2007\setup.exe" /adminfile "%SOFTWARE%\Office 2007\Custom.msp"' />
  <upgrade cmd='"%SOFTWARE%\Office 2007\setup.exe" /adminfile "%SOFTWARE%\Office 2007\Custom.msp"' />
</package>

The only problem with this solution is that it will tell you on each boot that the /adminfile option can only be used on initial setup. This can be fixed easily. On the Office 2007 distribution point there is a folder called Update which contains nothing. Each patch you want to apply to office 2007 is supposed to be added inside that folder and it will also recognize the .msp and apply it, so this gives us (provided that you have placed Custom.msp inside the Update folder):

<package id="office2007" name="Microsoft Office 2007" revision="2007" reboot="false" priority="0">
  <check type="uninstall" condition="exists" path="Microsoft Office Enterprise 2007" />
  <install cmd='"%SOFTWARE%\Office 2007\setup.exe"' />
  <upgrade cmd='"%SOFTWARE%\Office 2007\setup.exe"' />
</package>

Silent Un-installation of Microsoft Office 2007

Before a <remove /> option can be applied, a silent uninstallation file must be created on the share where the installation files exist. Navigate to the Version.WW folder (Enterprise.WW or ProPlus.WW for example). Copy the config.xml and name it silentuninstall.xml. Edit the silentuninstall.xml file to resemble the following code:

<Configuration Product="Enterprise">
    <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
</Configuration>

Now add the following line to your packages.xml file:

<remove cmd='"%SOFTWARE%\Office 2007\setup.exe /uninstall [Version] /config  %SOFTWARE%\Office2007\[Version].WW\silentuninstall.xml />

Integrate Service Pack 2 into the installer

While you might know slipstreaming from other Microsoft products, this isn't possible for Office 2007. It's actually just installing the regular version and then updating to SP2.

You don't need previous Service Packs, since SP2 replaces SP1.

Download Service Pack 2 from Microsoft. Remember to select the language matching your Office-pack.

Create the folder C:\SP2

Execute the downloaded SP2 file with the following parameters (where the **-** is your language code) and accept the EULA:

office2007sp2-kb953195-fullfile-**-**.exe /extract:C:\SP2

Move the contents of C:\SP2 to the folder called UPDATES in your original Office installation.

Now you can burn the Office installation or just execute it from a network share. SP2 will automatically be installed.