Difference between revisions of "MS Office 2003"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Service Pack 3)
m (Service Pack 3)
Line 50: Line 50:
 
         name="Microsoft Office 2003 SP3"
 
         name="Microsoft Office 2003 SP3"
 
         revision="1"
 
         revision="1"
         priority="500"
+
         priority="500">
        >
+
  
 
         <depends package-id="office2k3" />
 
         <depends package-id="office2k3" />
Line 57: Line 56:
 
         <check type='file' condition='versiongreaterorequal' path='%ProgramFiles%\Microsoft Office\OFFICE11\Winword.exe' value='11.0.8169.0' />
 
         <check type='file' condition='versiongreaterorequal' path='%ProgramFiles%\Microsoft Office\OFFICE11\Winword.exe' value='11.0.8169.0' />
  
         <install cmd='%WPKGROOT%\updates\office2003\Office2003SP3-KB923618-FullFile-ENU.exe /r:n /q /c:"msiexec /qn /log %SystemDrive%\netinst\logs\office2k3-sp3 /update MAINSP3.msp REBOOT=ReallySuppress"' >
+
         <install cmd='%SOFTWARE%\updates\office2003\Office2003SP3-KB923618-FullFile-ENU.exe /r:n /q /c:"msiexec /qn /log %TEMP%\office2k3-sp3.log /update MAINSP3.msp REBOOT=ReallySuppress"' >
 
             <exit code="0" />
 
             <exit code="0" />
 
             <exit code="194" reboot="true" />
 
             <exit code="194" reboot="true" />

Revision as of 08:54, 2 October 2008

This is a silent installer and uninstaller for MS Office 2003 in MSI format. The first method below works only if it doesn't need a product key. If it does, you should use the second method below.

<package
        id="msoffice2003"
        name="Microsoft Office 2003"
        revision="1"
        reboot="true"
        priority="0">
        <check type="uninstall" condition="exists" path="Microsoft Office Professional Edition 2003" />
 
        <install cmd='msiexec /i "%SOFTWARE%\MS Office 2003\PRO11.MSI" /q allusers=1 ADDLOCAL=ALL' />
 
        <remove  cmd='MsiExec.exe /q /x{90110407-6000-11D3-8CFE-0150048383C9}' />
 
</package>



Note: To extract the contents of the Office CD to a network installation point (which you can point to in the custom installation wizard), run setup.exe on the CD with the /a switch. See http://office.microsoft.com/en-us/ork2003/HA011401931033.aspx


Alternatively (this is the method we use) Download the Microsoft Office Resource Kit ([download]) and run the Custom Installation Wizard. This will enable you to add your Product Key along with configuring all of the settings of the Office Programs you choose to install (Word, Excel, Access). Note that you must not include hyphens or spaces in the Product Key! In addition, you may want to disable "install on first use" as your WPKG share may be inaccessible to an ordinary user.

Your package file then looks like

<package
        id="office2003"
        name="Microsoft Office 2003"
        revision="0"
        reboot="false"
        priority="0">
        <check type="uninstall" condition="exists" path="Microsoft Office Professional Edition 2003" />
        <install cmd='msiexec /i "%SOFTWARE%\Office2003\PRO11.MSI" TRANSFORMS=%SOFTWARE%\Office2003\Office.MST /qb-' />
        <remove  cmd='MsiExec.exe /q /x{90110407-6000-11D3-8CFE-0150048383C9}' />
</package>

Service Pack 3

You can use either the registry check or the file check. Registry check will differ depending on your Windows language version.

	<package
        id="office2k3-sp3"
        name="Microsoft Office 2003 SP3"
        revision="1"
        priority="500">

        <depends package-id="office2k3" />
        <!-- <check type="registry" condition="exists" path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\9040110900063D11C8EF10054038389C\Patches\F080F5739E881AE41A770C0F1945A68C\Installed" /> -->
        <check type='file' condition='versiongreaterorequal' path='%ProgramFiles%\Microsoft Office\OFFICE11\Winword.exe' value='11.0.8169.0' />

        <install cmd='%SOFTWARE%\updates\office2003\Office2003SP3-KB923618-FullFile-ENU.exe /r:n /q /c:"msiexec /qn /log %TEMP%\office2k3-sp3.log /update MAINSP3.msp REBOOT=ReallySuppress"' >
            <exit code="0" />
            <exit code="194" reboot="true" />
            <exit code="3010" reboot="true" />
        </install>
 
   </package>