Monday, April 21, 2008

Error 1316 when installing Office 2007 PIA’s

If you build a setup for an Office 2007 VSTO add-in following the steps described in Deploying Visual Studio 2005 Tools for Office Second Edition Solutions Using Windows Installer, your setup may report that the installation of the Office 2007 PIA's have failed. Looking at the log or installing o2007PIA.msi separately, you will get "Error 1316. Setup cannot read from file <tempdir>\PIARedist.msi. Check your connection to the network, or CD-ROM drive. For other potential solutions to this problem, see SETUP.CHM".

This occurs on fresh installs of Office 2007 with Microsoft Business Contact Manager and more generally, it seems to occur on any computer which has the Office 2007 PIA's installed using another installer than o2007pia.msi, which is the one Microsoft recommends using.

There seems to be a workaround which is to rename o2007pia.msi into PIARedist.msi both in the file system where bootstrapper packages are stored and in the product.xml file as shown below:

<PackageFile Name="PIARedist.msi"/>
<PackageFile Name="ComponentCheck.exe"/>


<Command PackageFile="PIARedist.msi"

You will need to rebuild your setup project.

Please let me know if this workaround does not work for you.