Not able to install .net 4.6.1 if .net 4.0 or higher already installed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Not able to install .net 4.6.1 if .net 4.0 or higher already installed

MrAK
This post has NOT been accepted by the mailing list yet.
Hello,

We are trying to included 4.6.1 as prerequisite for our installation application. This has been given in the bundle and separate netfx.wxs file accordingly. It is wokring on machines not having any .net installed or the installed .net version is less than 4.0.

Please advice how to proceed to make is execute and install on a mahcine having an installed .net versoin which is higher or equal to 4.0 but not 4.6.1

// Bundle.wxs

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
                 xmlns:bal='http://schemas.microsoft.com/wix/BalExtension'
                 xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'
                 xmlns:dep='http://schemas.microsoft.com/wix/DependencyExtension' >



        <Chain ParallelCache="yes">
                        <PackageGroupRef Id='Netfx461Full' />
                             
        </Chain>


NetFx.wxs

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">

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

    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx461FullVersion" Format="raw" Result="value"/>
    <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx461x64FullVersion" Win64="yes" Format="raw" Result="value"/>

    <PackageGroup Id="Netfx461Full">
      <ExePackage DisplayName="Microsoft .NET Framework 461" Name="Prerequisites\NDP461KB3102436x86x64AllOSENU.exe" Id="Netfx461Full" Cache="no" Compressed="no" Permanent="yes" PerMachine="yes" Vital="yes" SourceFile="$(var.msiRepository)\$(var.track)\Prerequisites\NDP461KB3102436x86x64AllOSENU.exe"
                  DownloadUrl="$(var.NetfxUrl)"
                  InstallCommand="$(var.NetfxCmd)"
                  DetectCondition=" (Netfx461FullVersion=&quot;4.6.01055&quot; OR Netfx461x64FullVersion=&quot;4.6.01055&quot;)">
      </ExePackage>
    </PackageGroup>
  </Fragment>
</wiz>
Loading...