In regard to the above discussion about your mba code, I was recently looking
at similar code in the wix src\Setup\WixBA\InstallViewModel.cs which has the
following code:

        private void PlanPackageBegin(object sender,
PlanPackageBeginEventArgs e)
        {
            if
(WixBA.Model.Engine.StringVariables.Contains("MbaNetfxPackageId") &&
e.PackageId.Equals(WixBA.Model.Engine.StringVariables["MbaNetfxPackageId"],
StringComparison.Ordinal))
            {
                e.State = RequestState.None;
            }
        }

So if you had code like this in your mba, I then:
1) Added as the first item in my Chain.
      <PackageGroupRef Id="NetFx40ClientWeb" />
I did not author the PackageGroupRef but used what is in the wixNetExtension

2) Added a MbaNetfxPackageId WixVariable, and did not author the following
  <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
    <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
When I had the above in the wix file I got a duplicate Id error.  So I have:
    <WixVariable Id="MbaPrereqPackageId" Value="NetFx40ClientWeb"  />   

This seems to be working for me.  I had been meaning to sort out this issue
as QA raised questions about it yesterday.  Thanks to your post I was able
to get it working.  I still have some testing to do so maybe I am
overlooking something.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-Variables-from-C-custom-BA-to-WIX-tp7596113p7596192.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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