Difference between revisions of "Microsoft Office Excel Viewer 2007 with SP2"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (add cat)
m (minor edit)
 
Line 10: Line 10:
 
<package id="excelviewer"
 
<package id="excelviewer"
 
name="Microsoft Office Excel Viewer 2007 with SP2"
 
name="Microsoft Office Excel Viewer 2007 with SP2"
revision="2007.2"
+
revision="%PKG_VERSION%"
priority="1"  
+
priority="10"  
 
reboot="false">
 
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="logical" condition="and">
+
  <check type="logical" condition="and">
<check type="logical" condition="or">
+
<check type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%" value="%PKG_EXE_VERSION%" />
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES%\Microsoft Office\Office12\XLVIEW.EXE" value="12.0.6502.5000" />
+
<check type="file" condition="versiongreaterorequal" path="%PROGRAMFILES(X86)%\Microsoft Office\Office12\XLVIEW.EXE" value="12.0.6502.5000" />
+
</check>
+
 
<check type="uninstall" condition="exists" path="Microsoft Office Excel Viewer" />
 
<check type="uninstall" condition="exists" path="Microsoft Office Excel Viewer" />
</check>
+
</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-0409-0000-0000000FF1CE}' />
 +
  <!--remove cmd='msiexec /qb /x{95120000-003F-0413-0000-0000000FF1CE}' /--><!-- removes a Dutch version -->
 
</package>
 
</package>
 
</source>
 
</source>

Latest revision as of 11:07, 29 August 2012

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"
	revision="%PKG_VERSION%"
	priority="10" 
	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="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" />
	</check>  
	
  <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>