Intricate bootstrapping: DependsOnProduct on a ClickOnce application?

Posted on 2011-10-20
Last Modified: 2012-05-12
System: Windows XP Professional, Corporate w/ ONLY Service Pack 2 installed. Application Profile: .NET Framework 4

I'm developing an application that uses ClickOnce deployment. The application relies on the following components:

    Windows Installer 3.1
    Windows Installer 4.5
    Microsoft .NET Framework 4 (x86 and x64)
    .NET Framework 3.5 SP1
    Microsoft Visual Basic PowerPacks 10.0
    Microsoft Visual Studio 2010 Report Viewer

Sequence of events (Windows XP Service Pack 2):

    Install Windows Installer 3.1 and request a reboot.
    Install Windows Installer 4.5 and request a reboot.
    The application then skips right to Microsoft .NET Framework 4

    Component Microsoft .NET Framework 4 (x86 and x64) has failed to install with the following error message:

    "A failure occurred attempting to install the .NET Framework 4 Full."

    The following components were not installed:

    - .NET Framework 3.5 SP1
    - Microsoft Visual Basic PowerPacks 10.0
    - Microsoft Visual Studio 2010 Report Viewer

    The following components failed to install:
    - Microsoft .NET Framework 4 (x86 and x64)

    See the setup log file located at 'C:\DOCUME~1\Phase\LOCALS~1\Temp\VSD1.tmp\install.log' for more information.

Open in new window

Log posted here for reference:

Relevant bootstrapper information for C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\Product.xml:

      <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
      <DependsOnProduct Code="Microsoft.Windows.Installer.4.5" />
    <IncludesProduct Code=".NETFramework,Version=v4.0,Profile=Client" />

Open in new window

Note: This application perfectly installs on Windows XP SP3.

With this in mind, how do I go about adding relevant information into DependsOnProduct that will resolve this hiccup?

Thank you for your time!
Question by:advantagec
    LVL 40

    Expert Comment

    by:Jacques Bourgeois (James Burger)
    Look at the system requirements at the bottom of

    .NET Framework requires SP3 on Windows XP. This is why it installs correctly on SP3 but not on SP2.

    Author Comment

    That being said, is it possible to notify a user if they are running SP2 and stop the installation process with ClickOnce?
    LVL 40

    Accepted Solution

    Not with the default ClickOnce deployment. It does a wonderful job, but does not let you control or add anything during the deployment and updates.

    However, there is a System.Deployment.Application namespace that provides a lot of classes that enables you to customize ClickOnce. There are a few that deal with the CompatibleFrameworks and also a CompatibleFrameworkMissingException listed in there.

    I haven't work with those, but I suppose that you should be able to build something with them.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now