Re: [WiX-users] Bootstrapper inherited from WixBA

2014-01-11 Thread Sean
In your BootstrapperCore.config, this is wrong:
 
host assemblyName=CustomBootstrapperApplication
 
The assemblyName attribute needs to have your assembly name, CustomBA3.  The 
config tells Burn which dll has your BA, then the dll's manifest tells burn 
which class is your BA.
 
Also looking at this guide 
http://blogs.msdn.com/b/heaths/archive/2011/10/28/introducing-managed-bootstrapper-applications.aspx,
 the supportedFramework elements shouldn't be inside the host element.
 
Sean Hall
 
 From: clacha...@gmail.com
 Date: Fri, 10 Jan 2014 18:12:23 +0100
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Bootstrapper inherited from WixBA
 
 Hi all,
 
 
 
 We are trying to generate a Bootstrapper Application
 CustomBootstrapperApplication which inheritate from WixBA (which we got
 from the sources of Wix 3.8).
 
 
 ***
 
 using System;
 
 using System.Collections.Generic;
 
 using System.Linq;
 
 using System.Text;
 
 using System.Threading.Tasks;
 
 using WixToolset.UX;
 
 using System.Windows.Forms;
 
 
 
 namespace CustomBA3
 
 {
 
 public class CustomBootstrapperApplication : WixBA
 
 {
 
 protected override void Run()
 
 {
 
 MessageBox.Show(Lets Go);
 
 base.Run();
 
 }
 
 }
 
 }
 
 ***
 
 
 
 
 
 The AssemblyInfo contains
 
 [assembly: BootstrapperApplication(typeof(CustomBootstrapperApplication))]
 
 
 
 
 
 We have tried different bootstrapperCore.config, as
 
 ***
 
 ?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 /
 
 /startup
 
 wix.bootstrapper
 
 host assemblyName=CustomBootstrapperApplication
 
 supportedFramework version=v4\Full /
 
 supportedFramework version=v4\Client /
 
 /host
 
 /wix.bootstrapper
 
 /configuration
 
 ***
 
 
 
 or
 
 using
 
 (...)
 
 sectionGroup name=wix.bootstrapper
 type=WixToolset.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore
 
   section name=host type=WixToolset.Bootstrapper.HostSection,
 BootstrapperCore /
 
 (...)
 
 
 
 
 
 Our bootstrapper is defined  with
 
 (...)
 
 Bundle Name=Bootstrapper Version=1.0.0.0
 Manufacturer=Us UpgradeCode=bccd71e0-acc1-4691-a990-4bc251bdcf3f
 
 BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'
 
   Payload  SourceFile=..\CustomBA3\Bin\Release\CustomBA3.dll /
 
   Payload  Name=BootstrapperCore.config
 SourceFile=..\CustomBA3\BootstrapperCore.config/
 
   Payload  SourceFile=..\CustomBA3\Bin\Release\BootstrapperCore.dll
 /
 
   Payload  SourceFile=..\CustomBA3\Bin\Release\WixBA.dll /
 
   Payload
 SourceFile=..\CustomBA3\Bin\Release\Microsoft.Deployment.WindowsInstaller.dll/
 
 /BootstrapperApplicationRef
 
 (...)
 
 
 
 but unfortunately,
 
 
 
 all our tries lead to the following error
 
 
 
 [1490:1238][2014-01-09T18:54:13]i001: Burn v3.8.1128.0, Windows v6.2 (Build
 9200: Service Pack 0), path:
 D:\repository\WebForce\Production\v7.0.0\MI_7.0.0_ServicePacks\InstallerProjects\BootstrapperMI\Bootstrapper\bin\Release\Bootstrapper.exe,
 cmdline: ''
 
 [1490:1238][2014-01-09T18:54:13]i000: Setting string variable
 'WixBundleLog' to value
 'C:\Users\spaes\AppData\Local\Temp\Bootstrapper_20140109185413.log'
 
 [1490:1238][2014-01-09T18:54:13]i000: Setting string variable
 'WixBundleOriginalSource' to value
 'D:\repository\WebForce\Production\v7.0.0\MI_7.0.0_ServicePacks\InstallerProjects\BootstrapperMI\Bootstrapper\bin\Release\Bootstrapper.exe'
 
 [1490:1238][2014-01-09T18:54:13]i000: Setting string variable
 'WixBundleName' to value 'Bootstrapper'
 
 [1490:1238][2014-01-09T18:54:13]i000: Loading managed bootstrapper
 application.
 
 [1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to create
 the managed bootstrapper application.
 
 [1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to create UX.
 
 [1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to load UX.
 
 [1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed while
 running
 
 [1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleAction = 4
 
 [1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleElevated = 0
 
 [1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleLog =
 C:\Users\spaes\AppData\Local\Temp\Bootstrapper_20140109185413.log
 
 [1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleManufacturer = Us
 
 [1490:1238][2014-01-09T18:54:13]i410

[WiX-users] Bootstrapper inherited from WixBA

2014-01-10 Thread Cédric LACHAISE
Hi all,



We are trying to generate a Bootstrapper Application
CustomBootstrapperApplication which inheritate from WixBA (which we got
from the sources of Wix 3.8).


***

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using WixToolset.UX;

using System.Windows.Forms;



namespace CustomBA3

{

public class CustomBootstrapperApplication : WixBA

{

protected override void Run()

{

MessageBox.Show(Lets Go);

base.Run();

}

}

}

***





The AssemblyInfo contains

[assembly: BootstrapperApplication(typeof(CustomBootstrapperApplication))]





We have tried different bootstrapperCore.config, as

***

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

/startup

wix.bootstrapper

host assemblyName=CustomBootstrapperApplication

supportedFramework version=v4\Full /

supportedFramework version=v4\Client /

/host

/wix.bootstrapper

/configuration

***



or

using

(...)

sectionGroup name=wix.bootstrapper
type=WixToolset.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore

  section name=host type=WixToolset.Bootstrapper.HostSection,
BootstrapperCore /

(...)





Our bootstrapper is defined  with

(...)

Bundle Name=Bootstrapper Version=1.0.0.0
Manufacturer=Us UpgradeCode=bccd71e0-acc1-4691-a990-4bc251bdcf3f

BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'

  Payload  SourceFile=..\CustomBA3\Bin\Release\CustomBA3.dll /

  Payload  Name=BootstrapperCore.config
SourceFile=..\CustomBA3\BootstrapperCore.config/

  Payload  SourceFile=..\CustomBA3\Bin\Release\BootstrapperCore.dll
/

  Payload  SourceFile=..\CustomBA3\Bin\Release\WixBA.dll /

  Payload
SourceFile=..\CustomBA3\Bin\Release\Microsoft.Deployment.WindowsInstaller.dll/

/BootstrapperApplicationRef

(...)



but unfortunately,



all our tries lead to the following error



[1490:1238][2014-01-09T18:54:13]i001: Burn v3.8.1128.0, Windows v6.2 (Build
9200: Service Pack 0), path:
D:\repository\WebForce\Production\v7.0.0\MI_7.0.0_ServicePacks\InstallerProjects\BootstrapperMI\Bootstrapper\bin\Release\Bootstrapper.exe,
cmdline: ''

[1490:1238][2014-01-09T18:54:13]i000: Setting string variable
'WixBundleLog' to value
'C:\Users\spaes\AppData\Local\Temp\Bootstrapper_20140109185413.log'

[1490:1238][2014-01-09T18:54:13]i000: Setting string variable
'WixBundleOriginalSource' to value
'D:\repository\WebForce\Production\v7.0.0\MI_7.0.0_ServicePacks\InstallerProjects\BootstrapperMI\Bootstrapper\bin\Release\Bootstrapper.exe'

[1490:1238][2014-01-09T18:54:13]i000: Setting string variable
'WixBundleName' to value 'Bootstrapper'

[1490:1238][2014-01-09T18:54:13]i000: Loading managed bootstrapper
application.

[1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to create
the managed bootstrapper application.

[1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to create UX.

[1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to load UX.

[1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed while
running

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleAction = 4

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleElevated = 0

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleLog =
C:\Users\spaes\AppData\Local\Temp\Bootstrapper_20140109185413.log

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleManufacturer = Us

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleName = Bootstrapper

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleOriginalSource =
D:\repository\WebForce\Production\v7.0.0\MI_7.0.0_ServicePacks\InstallerProjects\BootstrapperMI\Bootstrapper\bin\Release\Bootstrapper.exe

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleProviderKey =
{22fc06d5-55ec-4512-9a67-f12297e8920b}

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleTag =

[1490:1238][2014-01-09T18:54:13]i410: Variable: WixBundleVersion = 1.0.0.0

[1490:1238][2014-01-09T18:54:13]e000: Error 0x80131040: Failed to run
per-user mode.

[1490:1238][2014-01-09T18:54:13]i007: Exit code: 0x80131040, restarting: No
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink