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

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 1: Line 1:
This is the silent installer for Microsoft Office 2007 Visio Viewer. As it's name says - it allows you to view Microsoft Visio's files without having the full Version of Visio installed.
+
This is the silent installer for Microsoft Office 2007 Visio Viewer. As it's name says - it allows you to view Microsoft Visio files without having the full version of Visio installed.
  
 
First you need to download the setup file from:  
 
First you need to download the setup file from:  
[http://www.microsoft.com/downloads/details.aspx?FamilyId=D88E4542-B174-4198-AE31-6884E9EDD524 Microsoft's download page (link here - click)]. You'll find an .exe file which needs to be unpacked using an application like the excellent 7zip, you'll find five files inside:
+
[http://www.microsoft.com/downloads/details.aspx?FamilyId=D88E4542-B174-4198-AE31-6884E9EDD524 Microsoft's download page here]. You'll find an .exe file which needs to be unpacked using an application like the excellent 7zip, you'll find five files inside:
 
  vviewer.cab
 
  vviewer.cab
 
  files12.cat
 
  files12.cat

Revision as of 02:19, 19 October 2009

This is the silent installer for Microsoft Office 2007 Visio Viewer. As it's name says - it allows you to view Microsoft Visio files without having the full version of Visio installed.

First you need to download the setup file from: Microsoft's download page here. You'll find an .exe file which needs to be unpacked using an application like the excellent 7zip, you'll find five files inside:

vviewer.cab
files12.cat
vviewer.msi
EULA
eula.txt

Copy them to your WPKG installation share, in my case it is %SOFTWARE%\Microsoft\visiovwr2k7

Next download the Visio Viewer 2007 Service Pack 2 file from here. You will have a compressed executable called visioviewer2007sp2-kb953335-fullfile-en-us.exe. Once again use 7zip to extract the contents.

You will end up with four files, one called VViewersp2-en-us which should be about 10,001KB in size, rename this file to VViewersp2-en-us.msp and copy to your install location as above.


Now edit the package xml to look something like this:

  <package
        id="visiovwr2k7"
        name="Microsoft Visio Viewer 2007"
        revision="1"
        reboot="false"
        priority="0">
        
	<check type="logical" condition="or">	
	<check type="uninstall" condition="exists" path="Microsoft Office Visio Viewer 2007" />
	<check type="uninstall" condition="exists" path="Microsoft Office Visio Professional 2003" />
	<check type="uninstall" condition="exists" path="Microsoft Office Visio Professional 2007" />
	</check>
		
	<install cmd='msiexec /i "%SOFTWARE%\Microsoft\visiovwr2k7\vviewer.msi" PATCH="%SOFTWARE%\Microsoft\visiovwr2k7\VViewersp2-en-us.msp" /qb-'/>
 
	<remove  cmd='msiexec /x "%SOFTWARE%\Microsoft\visiovwr2k7\vviewer.msi /qn' />
 
  </package>

The checks mean Visio Viewer won't be installed if you already have the full Visio installed including Visio Prof 2003 (as you should have the file format converter installed if so).

The install cmd patches Visio Viewer 2007 to service Pack 2 during the install, I couldn't find a way to pre-patch the MSI but this works well.

And don't forget to update your profiles. Set your package priority to lower than that of your full Visio pacakages so this isn't installed unnecessarily.