Maybe my question is unclear. Check out the following two files. https://github.com/wixtoolset/wix3/blob/develop/src/ext/NetFxExtension/wixlib/NetFx4.wxs https://github.com/wixtoolset/wix3/blob/develop/src/ext/NetFxExtension/wixlib/NetFx452.wxs
The root of the issue appears to be that NetFx4.wxs declares two variables used by a managed bootstrapper application: <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx40Web" /> <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx40EulaLink)" /> NetFx452.wxs does not declare these variables. Is it supposed to or am I supposed to declare them myself? I have been looking a little further and it looks like maybe it was a bug that NetFx4.wxs declared them at all and I should have always been declaring them myself. Thanks, James -----Original Message----- From: John Cooper [mailto:jocoo...@jackhenry.com] Sent: Friday, August 8, 2014 2:49 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] .NET 4.5.2 and MBA Well, if you're making a package for .NET 4.5.2, look at the registry probe in NetFx and use a util:RegistrySearch to load a Burn variable with what you need. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: James Welle [mailto:jwe...@articulate.com] Sent: Friday, August 8, 2014 3:45 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] .NET 4.5.2 and MBA Carter, I'm not trying to detect any .NET versions myself. I am using the built in packages NetFx40Web and NetFx452Web. The issue is missing WiX variable definitions with 4.5.2. James -----Original Message----- From: Carter Young [mailto:ecyo...@grandecom.net] Sent: Friday, August 8, 2014 2:25 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] .NET 4.5.2 and MBA Testing for 4.5.2 is a bit different than testing for 4.0, as 4.5.x doesn't contain any diferent Registry Keys etc. Haang on whilst I google... :) Quoting James Welle <jwe...@articulate.com>: > Hello, > > I currently have a Wix project with a custom managed bootstrapper > application that is built using Wix 3.8 and that requires .NET 4.0 as > a prerequisite. > > My Bundle.wxs includes: > > <PackageGroupRef Id="NetFx40Web" /> > > And my bootstrapper config looks like: > > <?xml version="1.0" encoding="utf-8" ?> > <!-- > <copyright file="BootstrapperCore.config" company="Outercurve Foundation"> > Copyright (c) 2004, Outercurve Foundation. > This software is released under Microsoft Reciprocal License (MS-RL). > The license and further copyright text can be found in the file > LICENSE.TXT at the root directory of the distribution. > </copyright> > --> > <configuration> > <configSections> > <sectionGroup name="wix.bootstrapper" > type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSec > tionGroup, > BootstrapperCore"> > <section name="host" > type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection, > BootstrapperCore" /> > </sectionGroup> > </configSections> > <startup useLegacyV2RuntimeActivationPolicy="true"> > <supportedRuntime version="v4.0" /> > </startup> > <wix.bootstrapper> > <host assemblyName="BootstrapperApplication"> > <supportedFramework version="v4\Full" /> > <supportedFramework version="v4\Client" /> > </host> > </wix.bootstrapper> > </configuration> > > I am attempting to upgrade to Wix 3.9 so that I can require .NET > 4.5.2 as a prerequisite. When I do so and build I now get the > following errors: > > The Windows Installer XML variable !(wix.WixMbaPrereqPackageId) is > unknown. Please ensure the variable is declared on the command line > for light.exe, via a WixVariable element, or inline using the syntax > !(wix.WixMbaPrereqPackageId=some value which doesn't contain > parenthesis). C:\src\wix39\src\ext\BalExtension\wixlib\Mba.wxs > The Windows Installer XML variable !(wix.WixMbaPrereqLicenseUrl) is > unknown. Please ensure the variable is declared on the command line > for light.exe, via a WixVariable element, or inline using the syntax > !(wix.WixMbaPrereqLicenseUrl=some value which doesn't contain > parenthesis). C:\src\wix39\src\ext\BalExtension\wixlib\Mba.wxs > > Looking at the source I can see that these variables are defined in > NetFx4.wxs but not NetFx451.wxs or NetFx452.wxs. > > https://github.com/wixtoolset/wix3/blob/develop/src/ext/NetFxExtension > /wixlib/NetFx4.wxs > https://github.com/wixtoolset/wix3/blob/develop/src/ext/NetFxExtension > /wixlib/NetFx452.wxs > > Is it my responsibility to declare these variables myself moving > forward or do I need to make some other change? > > Thanks, > James > > ---------------------------------------------------------------------- > -------- Want fast and easy access to all the code in your enterprise? > Index and search up to 200,000 lines of code with a free copy of Black > Duck Code Sight - the same software that powers the world's largest > code search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users