Hi, Am tried to run the burn with classlibrary in bundle.wxs project, but am unable to get the solution. I have followed the below sample.
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Managed-bootstrap-failing-to-load-td7547420.html while running the application, the below log file shows error. In that link there got one message box, but i didn't get anything. error log: [0238:0590][2012-05-25T07:39:12]: Burn v3.6.2221.0, path: C:\Users\Kannanns\Documents\visual studio 2010\Projects\Bootstrapper4\Bootstrapper4\bin\Debug\Bootstrapper4.exe, cmdline: '' [0238:0590][2012-05-25T07:39:12]: Setting string variable 'WixBundleName' to value 'TestBundle' [0238:0590][2012-05-25T07:39:12]: Setting string variable 'WixBundleLog' to value 'C:\Users\Kannanns\AppData\Local\Temp\TestBundle_20120525073912.log' [0238:0590][2012-05-25T07:39:12]: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Kannanns\Documents\visual studio 2010\Projects\Bootstrapper4\Bootstrapper4\bin\Debug\Bootstrapper4.exe' [0238:0590][2012-05-25T07:39:12]: Loading managed bootstrapper application. [0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to create the managed bootstrapper application. [0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to create UX. [0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to load UX. [0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed while running [0238:0590][2012-05-25T07:39:12]: Error 0x80070002: Failed to run per-user mode. I followed the same code in my application, Please find the code in my application. MyBA Class library project: Class1.cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Tools.WindowsInstallerXml.Bootstrapper; using System.Windows.Forms; using Threading = System.Windows.Threading; namespace MyBA { public class TestBA : BootstrapperApplication { static public Threading.Dispatcher Dispatcher { get; private set; } protected override void Run() { this.Engine.Log(LogLevel.Verbose, "Running the TestBA."); TestBA.Dispatcher = Threading.Dispatcher.CurrentDispatcher; MessageBox.Show("My Bootstrapper Application is running"); Threading.Dispatcher.Run(); MessageBox.Show("Dispatcher Run has finished."); 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="TestBA"> </host> </wix.bootstrapper> </configuration> AssemblyInfo.cs using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Microsoft.Tools.WindowsInstallerXml.Bootstrapper; using MyBA; // 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("MyBA")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MyBA")] [assembly: AssemblyCopyright("Copyright © 2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // 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)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("2ff0a50e-27aa-4a44-987c-74f6833c5338")] [assembly: BootstrapperApplication(typeof(MyBA.TestBA))] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] Bundle.wxs: <?xml version="1.0"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Bundle Name="TestBundle" Version="1.0.0.0" Manufacturer="test" UpgradeCode="1BEA4ED5-ABCF-4D5E-B801-283BE568CB29"> <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'> <Payload Name="BootstrapperCore.config" SourceFile="..\..\MyBA\MyBA\bin\Debug\TestBA.BootstrapperCore.config" /> <Payload SourceFile="..\..\MyBA\MyBA\bin\Debug\MyBA.dll" /> <Payload SourceFile="NetfxLicense.rtf" /> </BootstrapperApplicationRef> <Chain> <PackageGroupRef Id='Netfx4Full' /> </Chain> </Bundle> </Wix> Netfx.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"> <Fragment> <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" /> <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" /> <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4FullVersion" /> <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" /> <PackageGroup Id="Netfx4Full"> <ExePackage Id="Netfx4Full" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="C:\Users\Kannanns\Documents\visual studio 2010\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.msi" DownloadUrl="http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" /> </PackageGroup> </Fragment> </Wix> Can you please help to execute the sample? Regards, Kannan -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-burn-Sample-issue-tp7576401.html Sent from the wix-users mailing list archive at Nabble.com. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-bootstrapper-sample-issue-tp7576441.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users