franklopez
Posts: 10
Joined: Wed Jul 08, 2009 4:38 am

how do I specify the homesite for a prerequisite

For example, within an msbuild package's product.xml file, I have the definition... can I use the "HomeSite" way of specifying prerequisities within an Advanced Installer project?

How would the below map to an Advanced Installer prerequisite definition? Meaning, if I want the installer to download this file from Microsoft's web site, how would I specify that within Advanced Installer?


<Product
xmlns="http://schemas.microsoft.com/developer/ ... otstrapper"
ProductCode="Microsoft.VSTORuntime.2.0">

<RelatedProducts>
<DependsOnProduct Code="Microsoft.Net.Framework.2.0" />
<DependsOnProduct Code="Microsoft.Office.PIA.2003" />
</RelatedProducts>

<!-- Defines the list of files to be copied on build. -->
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="VSTOR.exe" HomeSite="VSTORExe" PublicKey="..."/>
</PackageFiles>

<InstallChecks>
<MsiProductCheck Property="VSTORuntimeInstalled" Product="{388E4B09-3E71-4649-8921-F44A3A2954A7}"/>
</InstallChecks>
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: how do I specify the homesite for a prerequisite

Hi,

Please note that the User Guide contains a prerequisite tutorial which may help you.The prerequisite can be stored in the package, retrieved from an URL or you can open a website so the user installs it manually. You can read more about this here.


Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
franklopez
Posts: 10
Joined: Wed Jul 08, 2009 4:38 am

Re: how do I specify the homesite for a prerequisite

I guess Advanced Installer cannot use the msbuild "homesite" values.

If I want to have my installer go to the Microsoft web site and automatically download and install different prerequisite products, such as .NET 2.0, VSTO 2.0 SE runtime, and the Office 2007 Primary Interop Assemblies (PIA) what values would I specify for the URL and other values for .NET 2.0 SP2?

Advanced Installer has this under "Add" prerequisite, but the URL is not completed.

For example, for .NET 2.0 SP2 if I want to install it from Microsoft's web site, what values would I specify for the following:

1) Setup File: URL
2) command line:
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: how do I specify the homesite for a prerequisite

Hi,
If I want to have my installer go to the Microsoft web site and automatically download and install different prerequisite products, such as .NET 2.0, VSTO 2.0 SE runtime, and the Office 2007 Primary Interop Assemblies (PIA) what values would I specify for the URL and other values for .NET 2.0 SP2?
Usually it is recommended to place these redistributables on your server and configure the prerequisites to point to them. The Microsoft URLs may change and a prerequisite may not be able to find its installation package.
For example, for .NET 2.0 SP2 if I want to install it from Microsoft's web site, what values would I specify for the following:

1) Setup File: URL
2) command line:
The Microsoft URL for .NET Framework 2.0 SP2 is:
http://download.microsoft.com/download/ ... etupv2.msi

You can find the rest of the links in the Microsoft download pages. The "Command Line" can be set to the command line parameters you want to pass to the prerequisite installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”