Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8949421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:12:47+00:00 2026-06-15T13:12:47+00:00

I have a Wix installer and bootstrapper application to install my application and a

  • 0

I have a Wix installer and bootstrapper application to install my application and a service. As a prerequisite I need the .NET 2.0 SP2 Framework installed and tried to detect that using the following codesnippet:

    <Chain>
      <PackageGroupRef Id='Netfx2Package' />
      <MsiPackage SourceFile="..\Wix.CHL7.Dispatcher.Service.AZHF\bin\Debug\Wix.CHL7.Dispatcher.Service.AZHF.msi" Id="Wix.CHL7.Dispatcher.Service.AZHF_PackageId" Cache="yes" Visible="no">
        <MsiProperty Name="INSTALLDIR" Value="[INSTALLPATH]" />
        <MsiProperty Name="WixAppFolder" Value="[INSTALLSCOPE]"/>

      </MsiPackage>
    </Chain>
  </Bundle>

  <Fragment>
    <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx2Package" />
    <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />      

    <PackageGroup Id="Netfx2Package">
      <ExePackage Id="Netfx2Exe"
                  Cache="no"
                  Compressed="no"
                  PerMachine="yes"
                  Permanent="yes"
                  Vital="yes"
                  SourceFile="C:\Installation\Wix.CHL7.Dispatcher.Service.Bootstrapper\lib\NetFx20SP2_x86.exe"
                  DownloadUrl="http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe"
                  DetectCondition="NETFRAMEWORK20"
                  InstallCondition="FALSE"/>
    </PackageGroup>
  </Fragment>

When I run the installer on a machine which has .NET 2.0 SP2 installed (checked that in the registry) my installer wants to download and install the framework.

I assume my DetectCondition is incorrect but can’t seem to find a correct solution to my problem.
So how do I detect if .NET 2.0 SP2 is installed in my bootstrapper?

Thanks in advance!

W

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:12:48+00:00Added an answer on June 15, 2026 at 1:12 pm

    Make sure you are referencing the NetFxExtension properly.

    Source: WixNetfxExtension

    Using WixNetfxExtension Properties To use the WixNetfxExtension
    properties in an MSI, use the following steps:

    Add PropertyRef elements for items listed above that you want to use
    in your MSI. Add the -ext command line
    parameter when calling light.exe to include the WixNetfxExtension in
    the MSI linking process.

    For example:

    <PropertyRef Id="NETFRAMEWORK20" />
    

    Also, you probably want to use the property NETFRAMEWORK20_SP_LEVEL to get the appropriate service pack level if you require SP2. When troubleshooting I’d also check the install log to see if it indicates what the property values are set to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wix bootstrapper that is checking if .net framework 4.0 is installed
I have a simple WIX installer which will install a Windows Service. I have
Basically I want to have our installer also install the .NET framework and any
I have a WiX installer to install and start a service. However, all the
I have a WiX installer that I would like to check for .Net 3.5,
I have a WiX installer which installs .Net 4 and SQL as prerequisites. All
I have Wix 3.5, WixUI_Mondo dialogs and only one Feature to install. The Installer
I've built an installer with WIX and have packaged it with the .NET 4.0
I'm creating a WiX installer for an application. I have a requirement to make
I have a WiX installer which needs to install new bits for Interop.FOOBARLib.DLL to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.