none
What is HomeSite of Office PIA ?

    Question

  • Hi,

    I have a problem when try to build bootstrapper using MSBuild.

    One of the prerequisite is Office PIA. I prefer to used HomeSite for the ComponentLocation. But, msbuild show warning:
    warning MSB3164: No 'HomeSite' attribute has been provided for 'Microsoft Office 2007 Primary Interop Assemblies', so the package will be published to the same location as the bootstrapper. 

    I want it to be downloaded from the Internet, so my deployment file will be small.

    Here is code snipet of my MSBuild project:

     

    <Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     <ItemGroup>
      <BootstrapperFile Include="Microsoft.Windows.Installer.3.1">
       <ProductName>Windows Installer 3.1</ProductName>
      </BootstrapperFile>
      <BootstrapperFile Include="Microsoft.Net.Framework.3.5">
       <ProductName>.NET Framework 3.5</ProductName>
      </BootstrapperFile>
      <BootstrapperFile Include="Microsoft.VSTORuntime.3.0">
    	 <ProductName>VSTO Runtime 3.0</ProductName>
    	</BootstrapperFile>
    	<BootstrapperFile Include="Microsoft.Office.PIARedist.2007">
    	 <ProductName>Office 2007 PIA</ProductName>
    	</BootstrapperFile>
     </ItemGroup>
     
     <Target Name="Bootstrapper">
      <GenerateBootstrapper
       ApplicationFile="installer.msi" 
    	 ApplicationName="My Installer" 
       BootstrapperItems="@(BootstrapperFile)" OutputPath="bin"
       ComponentsLocation="HomeSite" Culture="en" 
       Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\" />  
     </Target>
     </Project>

    Here is the product.xml of my Office 2007 PIA:

    <?xml version="1.0" encoding="utf-8" ?>
    <!--
    ***********************************************************************
     
     Copyright (C) Microsoft Corporation. All rights reserved.
     
     THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
     KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
     IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
     PARTICULAR PURPOSE.
    ***********************************************************************
    -->
    
    <Product
     xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
     ProductCode="Microsoft.Office.PIARedist.2007">
    
     <RelatedProducts>
      <DependsOnProduct Code="Microsoft.Net.Client.3.5" />
     </RelatedProducts>
    
     <!-- Defines the list of files to be copied on build. -->
     <PackageFiles>
      <PackageFile Name="ComponentCheck.exe" />
      <PackageFile Name="o2007pia.msi" />
     </PackageFiles>
    
     <InstallChecks>
      <ExternalCheck 
    		Property="PIAInstallAction" 
    		PackageFile="ComponentCheck.exe" 
    		Arguments="{0638C49D-BB8B-4CD1-B191-050E8F325736}" />
     </InstallChecks>
    
     <!-- Defines how to run the Setup package. -->
     <Commands Reboot="Defer">
      <Command
       PackageFile="o2007pia.msi"
       Arguments="/quiet"
       EstimatedInstalledBytes="7000000"
       EstimatedInstallSeconds="60">
       <InstallConditions>
        <BypassIf Property="PIAInstallAction" Compare="ValueNotEqualTo" Value="0" />
        <!-- Requires the user to be an admin user when installing the prerequisite -->
        <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired" />
       </InstallConditions>
       <ExitCodes>
        <ExitCode Value="0" Result="Success" />
        <ExitCode Value="1641" Result="SuccessReboot" />
        <ExitCode Value="3010" Result="SuccessReboot" />
        <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
       </ExitCodes>
      </Command>
     </Commands>
    </Product>
    

    Thank you,

    Eddy Mulyono

    Thursday, June 10, 2010 8:53 AM

Answers