Install the .net Framework 4.0 from web automatically when needed

127 views Asked by At

I have a wix installer from my C# application. So far configuration is like this:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">

  <Product Id="*" Name="My App Name" Language="1033" Version="1.0.0"
           Manufacturer="My Name" UpgradeCode="GUID-HERE">

    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <PropertyRef Id="NETFRAMEWORK40FULL" />
    <Condition Message=".net Framework 4.0 is needed.">
      <![CDATA[Installed OR (NETFRAMEWORK40FULL)]]>
    </Condition>

So far if .net Framework 4.0 not installed the installation stops with a warning message box.

But instead preventing the installation to continue the installer offer to user install .net Framework 4.0 from web.

There is any way to do this?

0

There are 0 answers