36
edits
Changes
m
<check type="logical" condition="and"> <check type="logical" condition="or"> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILESPKG_DESTINATION%\Microsoft Office\Office12\XLVIEW.EXE" value="12.0.6502.5000" /> <check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES(X86)PKG_EXE_VERSION%\Microsoft Office\Office12\XLVIEW.EXE" value="12.0.6502.5000" /> </check>
minor edit
<package id="excelviewer"
name="Microsoft Office Excel Viewer 2007 with SP2"
revision="2007.2%PKG_VERSION%" priority="110"
reboot="false">
<variable name="PKG_VERSION" value="2007.2" />
<variable name="PKG_EXE_VERSION" value="12.0.6424.1000" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\MicrosoftOfficeViewer\ExcelViewer_en_20081401.exe"/>
<variable name="PKG_SOURCE2" value="%SOFTWARE%\MicrosoftOfficeViewer\excelviewer2007sp2-kb953336-fullfile-en-us.exe"/>
<!-- Patch already installed = exit code 17025; see http://technet.microsoft.com/en-us/library/cc179058%28v=office.12%29.aspx -->
<variable name="PKG_DESTINATION" value="%ProgramFiles%\Microsoft Office\Office12\XLVIEW.EXE" architecture="x86"/>
<variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\Microsoft Office\Office12\XLVIEW.EXE" architecture="x64"/>
<check type="uninstall" condition="exists" path="Microsoft Office Excel Viewer" />
</check> <install cmd='%SOFTWARE%\MicrosoftOfficeViewer\ExcelViewer.exe /quiet /passive /norestart' /> <install cmd='%SOFTWARE%\MicrosoftOfficeViewer\excelviewer2007sp2-kb953336-fullfile-en-us.exe /quiet /passive /norestart' /> <upgrade cmd='%SOFTWARE%\MicrosoftOfficeViewer\ExcelViewer.exe /quiet /passive /norestart' /> <upgrade cmd='%SOFTWARE%\MicrosoftOfficeViewer\excelviewer2007sp2-kb953336-fullfile-en-us.exe /quiet /passive /norestart' />
<install cmd='%PKG_SOURCE% /quiet /passive /norestart' />
<install cmd='%PKG_SOURCE2% /quiet /passive /norestart'><exit code='0' /><exit code='17025' /></install>
<!-- Patch already installed = exit code 17025; see http://technet.microsoft.com/en-us/library/cc179058%28v=office.12%29.aspx -->
<upgrade include="install" />
<remove cmd='msiexec /qb /x{95120000-003F-0409-0000-0000000FF1CE}' />
<!--remove cmd='msiexec /qb /x{95120000-003F-0413-0000-0000000FF1CE}' /--><!-- removes a Dutch version -->
</package>
</source>