Changes
mod install/upgrade, check
</pre>
wpkg packages.xml fragment(you must remove pack before install/upgrade, without this returns "Failed checking after installation" or another errors):
<source lang="xml">
<package id="off2007fmtconv" name="Office 2007 Compatibility Pack" revision="1" priority="1" reboot="false">
<check type="uninstall" condition="exists" path="Compatibility Pack for the 2007 Office system" />
<install cmd='msiexec /qn /x{90120000-0020-0409-0000-0000000FF1CE}' />
<install cmd='msiexec /qn /i "%SOFTWARE%\Office_2007_Compatibility_Pack\O12Conv.msi"' />
<upgrade cmd='msiexec /qn /x{90120000-0020-0409-0000-0000000FF1CE}' />
<upgrade cmd='msiexec /qn /i "%SOFTWARE%\Office_2007_Compatibility_Pack\O12Conv.msi"' />
<remove cmd='msiexec /qn /x{90120000-0020-0409-0000-0000000FF1CE}' />
</package>
</source>
Can use 3 or more check, better with version check (this is for czech version):
<source lang="xml">
<check type="logical" condition="or">
<check type="uninstall" condition="versionequalto" path="Sada Compatibility Pack pro systém Office 2007" value="12.0.6514.5001" />
<check type="uninstall" condition="exists" path="Microsoft Office Standard Edition 2007" />
<check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2010" />
</check>
</source>
If you want to install this without extracting first you can use the following script:
<check type="uninstall" condition="exists" path="Compatibility Pack for the 2007 Office system" />
<install cmd='msiexec /qn /x{90120000-0020-0409-0000-0000000FF1CE}' />
<install cmd='%SOFTWARE%\off2007fmtconv\FileFormatConverters.exe /q' />
<upgrade cmd='msiexec /qn /x{90120000-0020-0409-0000-0000000FF1CE}' />
<upgrade cmd='%SOFTWARE%\off2007fmtconv\FileFormatConverters.exe /q' />