[WiX-users] MBA Application - No controls showing up on my main view
Hello Everyone, Trying to create a window for my main view. I get the window showing up but no controls and no text. Just the standard MSI icon. I know I'm invoking the right class since the Run method defined below has a MessageBox.Show(...) and I'm getting that message box. Anyone have any previous experience with this? Is my XAML really that bad? XAML: Window x:Class=Nuance.NDI.Equitrac.MainView_Master xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml; xmlns:d=http://schemas.microsoft.com/expression/blend/2008; xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006; mc:Ignorable=d Title=Nuance Document Imaging Width=800 MinWidth=800 Height=600 MinHeight=600 Window.Resources BooleanToVisibilityConverter x:Key=BooleanToVisibilityConverter / /Window.Resources Image HorizontalAlignment=Left Height=379 Margin=84,96,0,0 VerticalAlignment=Top Width=479 Source=C:\Users\stephen_tunney\Pictures\Logan\2013-10-11.jpg/ /Window UX.cs: public class UX : BootstrapperApplication { public UX() : base() { #if DEBUG if (!System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Launch(); #endif } /// summary /// global dispatcher /// /summary static public Dispatcher BootstrapperDispatcher { get; private set; } /// summary /// entry point for our custom UI /// /summary protected override void Run() { MessageBox.Show(Hello World!); this.Engine.Log(LogLevel.Verbose, Launching Equtirac UX); BootstrapperDispatcher = Dispatcher.CurrentDispatcher; MainViewModel viewModel = new MainViewModel(this); viewModel.Bootstrapper.Engine.Detect(); MainView_Master view = new MainView_Master(); view.DataContext = viewModel; view.Closed += (sender, e) = BootstrapperDispatcher.InvokeShutdown(); Dispatcher.Run(); this.Engine.Quit(0); } } Logs show no errors: [18A4:16FC][2015-01-16T16:34:56]i001: Burn v3.9.901.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\ExpressMBA.exe, cmdline: '' [18A4:16FC][2015-01-16T16:34:56]i000: Initializing string variable 'InstallFolder' to value '[ProgramFilesFolder]Test\App' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\STEPHE~1\AppData\Local\Temp\ExpressMBA_20150116163456.log' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\ExpressMBA.exe' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleName' to value 'ExpressMBA' [18A4:16FC][2015-01-16T16:34:56]i000: Loading managed bootstrapper application. [18A4:16FC][2015-01-16T16:34:56]i000: Creating BA thread to run asynchronously. [18A4:25B8][2015-01-16T16:34:58]i000: Launching Equtirac UX [18A4:16FC][2015-01-16T16:34:58]i100: Detect begin, 2 packages [18A4:16FC][2015-01-16T16:34:58]i000: Registry key not found. Key = 'SOFTWARE\Equitrac\Express\1.0)' [18A4:16FC][2015-01-16T16:34:58]i052: Condition 'PreviousInstallFolder' evaluates to false. [18A4:16FC][2015-01-16T16:34:58]i000: Setting numeric variable 'Netfx35Version' to value 1 [18A4:16FC][2015-01-16T16:34:58]i102: Detected related bundle: {cba9179a-f8a5-4b2d-a060-b90d9449ecbc}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None [18A4:16FC][2015-01-16T16:34:58]i052: Condition 'Netfx35Version' evaluates to true. [18A4:16FC][2015-01-16T16:34:58]i101: Detected package: dotnetfx35.exe, state: Present, cached: None [18A4:16FC][2015-01-16T16:34:58]i101: Detected package: CAS.msi, state: Absent, cached: None [18A4:16FC][2015-01-16T16:34:58]i199: Detect complete, result: 0x0 [18A4:16FC][2015-01-16T16:35:04]i500: Shutting down, exit code: 0x0 [18A4:16FC][2015-01-16T16:35:04]i410: Variable: InstallFolder = C:\Program Files (x86)\Test\App [18A4:16FC][2015-01-16T16:35:04]i410: Variable: Netfx35Version = 1 [18A4:16FC][2015-01-16T16:35:04]i410: Variable: ProgramFilesFolder = C:\Program Files (x86)\ [18A4:16FC][2015-01-16T16:35:04]i410: Variable: WixBundleAction = 4 [18A4:16FC][2015-01-16T16:35:04]i410: Variable: WixBundleElevated = 0 [18A4:16FC][2015-01-16T16:35:04]i410: Variable: WixBundleLog = C:\Users\STEPHE~1\AppData\Local\Temp\ExpressMBA_20150116163456.log [18A4:16FC][2015-01-16T16:35:04]i410: Variable: WixBundleManufacturer = Test [18A4:16FC][2015-01-16T16:35:04]i410: Variable: WixBundleName = ExpressMBA
Re: [WiX-users] MBA Application - No controls showing up on my main view
And solved my own problem as soon as I had sent the email... I've been looking at this for two weeks on and off. My XAML Window/@x:Class 's namespace was different than that of the code-behind. The constructor I guess was being auto-created and InitializeComponent was not being called. One for the ages I guess. http://demotivators.despair.com/demotivational/mistakesdemotivator.jpg Stephen Tunney Nuance Communications, Inc. Solutions Architect, Imaging Division Waterloo, Ontario, Canada stephen.tun...@nuance.com 519-880-7463Office NUANCE.COM The experience speaks for itself (tm) -Original Message- From: Tunney, Stephen [mailto:stephen.tun...@nuance.com] Sent: January-16-15 4:40 PM To: General discussion about the WiX toolset. Subject: [WiX-users] MBA Application - No controls showing up on my main view Hello Everyone, Trying to create a window for my main view. I get the window showing up but no controls and no text. Just the standard MSI icon. I know I'm invoking the right class since the Run method defined below has a MessageBox.Show(...) and I'm getting that message box. Anyone have any previous experience with this? Is my XAML really that bad? XAML: Window x:Class=Nuance.NDI.Equitrac.MainView_Master xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation; xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml; xmlns:d=http://schemas.microsoft.com/expression/blend/2008; xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006; mc:Ignorable=d Title=Nuance Document Imaging Width=800 MinWidth=800 Height=600 MinHeight=600 Window.Resources BooleanToVisibilityConverter x:Key=BooleanToVisibilityConverter / /Window.Resources Image HorizontalAlignment=Left Height=379 Margin=84,96,0,0 VerticalAlignment=Top Width=479 Source=C:\Users\stephen_tunney\Pictures\Logan\2013-10-11.jpg/ /Window UX.cs: public class UX : BootstrapperApplication { public UX() : base() { #if DEBUG if (!System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Launch(); #endif } /// summary /// global dispatcher /// /summary static public Dispatcher BootstrapperDispatcher { get; private set; } /// summary /// entry point for our custom UI /// /summary protected override void Run() { MessageBox.Show(Hello World!); this.Engine.Log(LogLevel.Verbose, Launching Equtirac UX); BootstrapperDispatcher = Dispatcher.CurrentDispatcher; MainViewModel viewModel = new MainViewModel(this); viewModel.Bootstrapper.Engine.Detect(); MainView_Master view = new MainView_Master(); view.DataContext = viewModel; view.Closed += (sender, e) = BootstrapperDispatcher.InvokeShutdown(); Dispatcher.Run(); this.Engine.Quit(0); } } Logs show no errors: [18A4:16FC][2015-01-16T16:34:56]i001: Burn v3.9.901.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\ExpressMBA.exe, cmdline: '' [18A4:16FC][2015-01-16T16:34:56]i000: Initializing string variable 'InstallFolder' to value '[ProgramFilesFolder]Test\App' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\STEPHE~1\AppData\Local\Temp\ExpressMBA_20150116163456.log' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\ExpressMBA.exe' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\5.5_tunney\Installation\Products\ExpressMBA\ExpressMBA\bin\Release\' [18A4:16FC][2015-01-16T16:34:56]i000: Setting string variable 'WixBundleName' to value 'ExpressMBA' [18A4:16FC][2015-01-16T16:34:56]i000: Loading managed bootstrapper application. [18A4:16FC][2015-01-16T16:34:56]i000: Creating BA thread to run asynchronously. [18A4:25B8][2015-01-16T16:34:58]i000: Launching Equtirac UX [18A4:16FC][2015-01-16T16:34:58]i100: Detect begin, 2 packages [18A4:16FC][2015-01-16T16:34:58]i000: Registry key not found. Key = 'SOFTWARE\Equitrac\Express\1.0)' [18A4:16FC][2015-01-16T16:34:58]i052: Condition 'PreviousInstallFolder' evaluates to false. [18A4:16FC][2015-01-16T16:34:58]i000: Setting numeric variable 'Netfx35Version' to value 1 [18A4:16FC][2015-01-16T16:34:58]i102: Detected related bundle: {cba9179a-f8a5-4b2d-a060-b90d9449ecbc}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None [18A4:16FC][2015-01-16T16:34:58]i052: Condition 'Netfx35Version' evaluates to true. [18A4:16FC][2015-01-16T16:34:58]i101: Detected package: dotnetfx35.exe, state: Present, cached: None [18A4:16FC][2015-01-16T16:34:58]i101: Detected package: CAS.msi, state: Absent