Ah, thank you Tobias!  In Bundle.wxs I had <BootstrapperApplication> but I
needed to have <BootstrapperApplicationRef>.  Attention to detail, FTW.
 After making that change I got these errors:

E:\delivery\Dev\wix36_public\src\ext\BalExtension\wixlib\Mba.wxs(46,0):
error LGHT0197: 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).
E:\delivery\Dev\wix36_public\src\ext\BalExtension\wixlib\Mba.wxs(46,0):
error LGHT0197: 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).

According to this
thread<http://sourceforge.net/mailarchive/forum.php?thread_name=CAHdHTVd9zEsFZnce_EBHNn%2BpM984C28THT3Ed9fgcsQp8B6nRA%40mail.gmail.com&forum_name=wix-users>I
added these variables:

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

Errors went away and now it works! Can anyone shed some light on the
functional difference between BootstrapperApplication and
BootstrapperApplicationRef?  (ie when to use each?)

Cody

On Tue, Aug 23, 2011 at 12:52 PM, Tobias S <tobias.s1...@gmail.com> wrote:

> have following working implementation:
>
> Project Name MyBa (Visual C# Class Library)
>
> Class1.cs: (additional references were afaik BootstrapperCode + windows
> forms)
> using System;
> using System.Collections.Generic;
> using System.Linq;
> using System.Text;
> using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
> using System.Windows.Forms;
>
>
> namespace MyBA
> {
>    public class TestBA : BootstrapperApplication
>    {
>        protected override void Run()
>        {
>             MessageBox.Show("My BA is running");
>            this.Engine.Quit(0);
>        }
>    }
> }
>
>
> TestBA.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" />
>        <!-- supportedRuntime version="v2.0.50727" / -->
>    </startup>
>    <wix.bootstrapper>
>         <host assemblyName="MyBA">
>             <supportedFramework version="v4\Full" />
>            <supportedFramework version="v4\Client" />
>        </host>
>    </wix.bootstrapper>
> </configuration>
>
>
>
> AssemblyInfo.cs (interesting parts)
> using System.Reflection;
> using System.Runtime.CompilerServices;
> using System.Runtime.InteropServices;
> using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
> using MyBA;
> ...
> [assembly: BootstrapperApplication(typeof(TestBA))]
>
>
> Bundle.wxs (including WiXBalExtenstion):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
>  <Bundle Name="Bootstrapper3" Version="1.0.0.0"
> Manufacturer="Bootstrapper3" UpgradeCode="aUpgradeCode">
>
>
>    <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
>      <Payload SourceFile='..\MyBA\bin\debug\MyBA.dll' />
>      <Payload Name='BootstrapperCore.config'
> SourceFile='..\MyBA\TestBA.BootstrapperCore.config' />
>    </BootstrapperApplicationRef>
>
>    <Chain>
>      <PackageGroupRef Id='Netfx4Full' />
>
>      <MsiPackage ...
> />
>    </Chain>
>  </Bundle>
> </Wix>
>
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to