Microsoft Office Excel Viewer 2007 with SP2

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

This silent installation allows you to install Microsoft Excel Viewer 2007, then patch with Service Pack 2 automatically.

The file version check is to ensure computers with Excel Viewer 2007 that don't have the SP2 will fail the installation check so that the update is installed.

Download MS Excel Viewer 2007 & MS Excel Viewer 2007 SP2

Extracting from the .exe file is not necessary.

<package id="excelviewer"
	name="Microsoft Office Excel Viewer 2007 with SP2"
  <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 -->
  <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="logical" condition="and">
		<check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%" value="%PKG_EXE_VERSION%" />
		<check type="uninstall" condition="exists" path="Microsoft Office Excel Viewer" />
  <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 -->
	<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 -->