Okay so I'm now trying to put together a very simple Bootstrapper
Application, but I'm getting these errors in the log file when I run the
bootstrapper:

[0D20:0CAC][2011-08-23T11:49:22]: Error 0x8007007f: Failed to get
BootstrapperApplicationCreate entry-point
[0D20:0CAC][2011-08-23T11:49:22]: Error 0x8007007f: Failed to load UX.
[0D20:0CAC][2011-08-23T11:49:22]: Error 0x8007007f: Failed while running
[0D20:0CAC][2011-08-23T11:49:22]: Error 0x8007007f: Failed to run per-user
mode.

Based on this 
thread<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Trouble-implementing-a-BootstrapperApplication-in-C-td6057445.html>
I've
double checked all of the configuration settings mentioned. I think
everything is right.

My bootstrap application assembly is named CustomBA and it looks like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;

namespace CustomBA
{
    public class MyApplication : BootstrapperApplication
    {
        protected override void Run()
        {
            System.Windows.MessageBox.Show("My BA is running");
            this.Engine.Quit(0);
        }
    }
}

AssemblyInfo.cs is based on Wix source example:

using System;
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
using CustomBA;

// General Information about an assembly is controlled through the
following
// set of attributes. Change these attribute values to modify the
information
// associated with an assembly.
[assembly: AssemblyTitle("CustomBA")]
[assembly: AssemblyDescription("Custom Bootstrapper Application")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components.  If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
[assembly: Guid("3ff5fe14-6fd1-4e90-91f9-a0db546cc424")]
[assembly: CLSCompliantAttribute(true)]

[assembly: BootstrapperApplication(typeof(MyApplication))]


I have CustomBA.BootstrapperConfig.dll :

<?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="CustomBA">
      <supportedFramework version="v4\Full" />
      <supportedFramework version="v4\Client" />
    </host>
  </wix.bootstrapper>
</configuration>

It is referenced by my Bundle.wxs like so:

<BootstrapperApplication Id="ManagedBootstrapperApplicationHost">
        <Payload SourceFile="$(var.CustomBA.TargetPath)"/>
        <Payload Name="BootstrapperCore.config"

SourceFile="$(var.CustomBA.ProjectDir)CustomBA.BootstrapperCore.config" />
</BootstrapperApplication>

I'm not sure what the problem is or how to proceed with troubleshooting at
this point. Any suggestions?   I'm using the latest 3.6 build 2019.

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