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

Reply via email to