Difference between revisions of "MS Office 2003"
From WPKG | Open Source Software Deployment and Distribution
(→Service Pack 3: added dash) |
|||
Line 53: | Line 53: | ||
> | > | ||
− | <depends | + | <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="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' /> | <check type='file' condition='versiongreaterorequal' path='%ProgramFiles%\Microsoft Office\OFFICE11\Winword.exe' value='11.0.8169.0' /> |
Revision as of 17:53, 17 March 2008
This is a silent installer and uninstaller for MS Office 2003 in MSI format.
<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).
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.
<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='%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"' >
<exit code="0" />
<exit code="194" reboot="true" />
<exit code="3010" reboot="true" />
</install>
</package>