Hi Jiri, I just managed the task you describe (albeit wit .Net 4.5.2.) with the follwing setup. --------------------------- BootstrapperCore.config ------------------------------------------------- <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="wix.bootstrapper" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore"> <section name="host" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, BootstrapperCore" /> </sectionGroup> </configSections> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> </startup> <wix.bootstrapper> <host assemblyName="CustomBA" /> </wix.bootstrapper> </configuration> ----------------------------------------------------------------------------------------------------------
--------------------------- bundle.wxs ------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle Name="MyBootstrapper" Version="1.0.0.0" Manufacturer="WiX Tests" UpgradeCode="416b6bbf-2beb-4187-9f83-cdb764db2840"> <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost"> <Payload SourceFile="$(var.CustomBA.TargetDir)CustomBA.dll" /> <Payload SourceFile="$(var.CustomBA.TargetDir)BootstrapperCore.config" /> <Payload SourceFile="$(var.CustomBA.TargetDir)Microsoft.Practices.Prism.dll" /> </BootstrapperApplicationRef> <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx452Web" /> <WixVariable Id="WixMbaPrereqLicenseUrl" Value="http://go.microsoft.com/fwlink/?LinkID=260867" /> <Chain DisableSystemRestore="yes"> <PackageGroupRef Id="NetFx452Web"/> <MsiPackage SourceFile="$(var.MyInstaller.TargetPath)" /> </Chain> </Bundle> </Wix> ---------------------------------------------------------------------------------------------------------- Please note that BootstrapperCore.config enforces the use of .NET 4.5 for the managed bootstrapper application by using the sku Attribute at Tag supportedRuntime. The possible values for this attribute are stated here: https://msdn.microsoft.com/en-us/library/w4atty68%28v=vs.110%29.aspx I suppose this is the bit you are missing ? Please note that the bundle.wxs explicitly sets variables WixMbaPrereqPackageId and WixMbaPrereqLicenseUrl. This is necessary due to a bug in WiX NetFx Extension described here: http://wixtoolset.org/issues/4671/ In my Test of this Setup, i started with a clean win7 (having .NET 3.5). First, i manually installed .Net 40. After that, I started the Installer. It first asks for .NET 4.5.2 intallation (with a native GUI provided by the WiX Libs) and only once the installation is done, (replacing .net 4.0) the WPF GUI of the Installer comes up - without asking for reboot. Let me know if this works for you as well. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-force-NET-prerequisite-installation-before-Burn-MBA-starts-tp7600085p7600087.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users