Hi Rob,

Thank you so much for your very prompt reply! I knew it had to be something
trivial.

Renaming test.config to Test.BootstrapperCore.config and changing the line:

<Payload SourceFile='Test.config' />

to

<Payload Name='BootstrapperCore.config'
SourceFile='Test.BootstrapperCore.config' />

Fixed the problem. I greatly look forward to using burn on my project!

Best Regards,

Phil Podlevsky

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Tuesday, August 02, 2011 5:10 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Trouble with ManagedBootStrapperApplication

IIRC, "test.config" must be called "BootrapperCore.config". It's the config
for the BootstrapperCore.dll not for your .dll <smile/>

On Tue, Aug 2, 2011 at 4:17 PM, Phil Podlevsky
<philpodlev...@gmail.com>wrote:

> Hi Everyone,
>
> I am trying to build a very simple ManagedBootstrapperApplication and 
> for some reason I am getting the following error every time I run my 
> executable.
>
> [0558:0EAC][2011-08-02T15:34:29]: Burn v3.6.1929.0, path:
> C:\Users\ppodlevsky\Desktop\Bootstrapper1\bin\Debug\Bootstrapper1.exe,
> cmdline: '-burn.unelevated 
> BurnPipe.{CB4F9B8D-2328-4C37-83C6-51AA3D161E23}
> {8025EB40-A355-448A-A877-7555CBFB28EE} 6980'
> [0558:0EAC][2011-08-02T15:34:29]: Setting string variable 'WixBundleName'
> to
> value 'Bootstrapper1'
> [0558:0EAC][2011-08-02T15:34:29]: Setting string variable 
> 'WixBundleLog' to value 
> 'C:\Users\PPODLE~1\AppData\Local\Temp\Bootstrapper1_20110802153429.log'
> [0558:0EAC][2011-08-02T15:34:29]: Setting string variable 
> 'WixBundleOriginalSource' to value 
> 'C:\Users\ppodlevsky\Desktop\Bootstrapper1\bin\Debug\Bootstrapper1.exe'
> [0558:0EAC][2011-08-02T15:34:31]: Loading prerequisite bootstrapper 
> application because managed host could not be loaded, error: 0x8007006e.
> [0558:0EAC][2011-08-02T15:34:31]: Detect 1 packages
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {0e8da8e7-83d8-4590-81e9-ab6344096478}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {404fda75-53c4-41f2-92ff-53e7f2448d8f}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {54b3aedd-aec9-40bc-b4cf-d511d55f35e3}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {5c4b1a4e-c47f-4962-8643-61d6fed0d5f0}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {5ea6379f-2aa4-46fe-9d51-883c8f46c55b}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {89495e12-6f5f-493b-9bab-32d806c5b0f8}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {a9117d7c-8964-4cb0-b831-373a8d01391c}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {bf69ddd6-52fa-4ba2-af75-7931896c4853}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {c0434e35-f8fb-488d-acc7-2ff2c73374a3}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detected related bundle:
> {f4451ce5-84cd-462f-a38d-57331103ca7b}, scope: PerMachine, version:
> 1.0.0.0,
> operation: None
> [0558:0EAC][2011-08-02T15:34:31]: Detect 1 msi features for package:
> Installer
> [0558:0EAC][2011-08-02T15:34:31]: Detected feature: ProductFeature, state:
> Absent
> [0558:0EAC][2011-08-02T15:34:31]: Detected package: MCSInstaller, state:
> Absent, cached: No
> [0558:0EAC][2011-08-02T15:34:31]: Detect complete, result: 0x0
> [0558:0EAC][2011-08-02T15:34:36]: Shutting down, exit code: 0x80070642
> [0558:0EAC][2011-08-02T15:34:36]: The prerequisites were not 
> successfully installed, error: 0x0. The bootstrapper application will be
not reloaded.
>
> To give a bit of background:
>
>   - I read all the posts I could find on the wix-users email list in
>   regards to ManagedBootstrapperApplication. From what I can tell I am 
> doing
>   everything right.
>   - I am running .NET Framework 4.0 SP1, Visual Studio 2010, and WiX
>   Toolset v.3.6.1929.0.
>
> I am running BootStrapper1.exe on the same machine I compiled it on so 
> I know .NET Framework 4.0 SP1 is installed. It looks like WiX is 
> falling back to running the pre-requisites because it can't find 
> test.dll but I have it and test.config in the same directory as 
> Bundle.wxs. I have tried absolute paths to the .DLL and config and it 
> still doesn't work. I also tried enabling the fusion log to see if it 
> was having trouble loading an assembly via reflection and still no dice.
>
> Here is all the code I am using. Does anyone have any ideas? I love 
> the burn concept and want to use it on my project at work but this 
> error is making me want to pull my hair out. Is there any way to step 
> through what burn is trying to when running my installer? Knowing my 
> luck this has got to be something trivial...
>
> Best Regards,
>
> Phil Podlevsky
>
> BootStrapper1 project, Output type: Executable Package (.exe)
>
> Bundle.wxs:
>
> <?xml version="1.0" encoding="UTF-8"?><Wix 
> xmlns="http://schemas.microsoft.com/wix/2006/wi";
> xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>  <Bundle 
> Name="Bootstrapper1" Version="1.0.0.0" Manufacturer="Bootstrapper1"
> UpgradeCode="5390236b-bb16-4fd5-b662-a1022046f3db">    <WixVariable
> Id="WixMbaPrereqPackageId" Value="Netfx4Full" />    <WixVariable
> Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" /> 
> <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
>   <Payload SourceFile='Test.dll' />      <Payload
> SourceFile='Test.config' />    </BootstrapperApplicationRef>
> <Chain>      <MsiPackage Id="Installer" Cache="no" Compressed="no"
> SourceFile="C:\Installer.msi" Vital="yes" />    </Chain>
> </Bundle></Wix>
>
> Test project, Output type: Class library (test.dll)
>
> Test.config:
>
> <?xml version="1.0" encoding="utf-8" ?><configuration>
> <configSections>        <sectionGroup name="wix.bootstrapper"
>
>
type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGr
oup,
> 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="Test">            <supportedFramework
> version="v4\Full" />         </host>
> </wix.bootstrapper></configuration>
>
>
> TestBA.cs:
>
> namespace Test
> {
>    public class TestBA : BootstrapperApplication
>    {
>        protected override void Run()
>        {
>            MessageBox.Show("My BA is running");
>            this.Engine.Quit(0);
>        }
>    }
> }
>
> AssemblyInfo.cs:
>
> [assembly: BootstrapperApplication(typeof(TestBA))]
>
> ----------------------------------------------------------------------
> -------- BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, 
> CA The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
----------------------------------------------------------------------------
--
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to