Hey Nick

 I just looked at my boostrapper and it also needed a

Application.ResourceAssembly = typeof(MainWindow).Assembly;

Can you add it to your BS and see if it helps

Raj




On Mon, Apr 8, 2013 at 3:08 PM, Nick Miller <nmil...@livetechnology.com>wrote:

> I am currently using the MergedDictionaries construct:
>
> <Window.Resources>
>         <ResourceDictionary>
>             <ResourceDictionary.MergedDictionaries>
>                 <ResourceDictionary
> Source="pack://application:,,,/Views/Style/ButtonStyles.xaml"/>
>                 <ResourceDictionary
> Source="pack://application:,,,/Views/Style/Resources.xaml"/>
>             </ResourceDictionary.MergedDictionaries>
>         </ResourceDictionary>
>     </Window.Resources>
>
> I've also tested this in a WPF application and it works perfectly.
>
> Could using multiple resource dictionaries be the problem?  Has anyone
> here ever successfully created a BA using
>  ResourceDictionary.MergedDictionaries?
>
> Nicholas Miller (Network Administrator)
> LiveTechnology Holdings, Inc.
> LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
> Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
> Email: nmil...@livetechnology.com
> Website: www.LiveTechnology.com
>
> -----Original Message-----
> From: ptr [mailto:ptrajku...@gmail.com]
> Sent: Monday, April 08, 2013 5:02 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Visual Styles in Wix BA
>
> If I understand your problem correctly this has nothing to external
> payload. The XAML files are usually embedded within managed assembly. If
> you are using mutliple resource files you have to use the MergeDictionaries
> construct http://msdn.microsoft.com/en-us/library/aa350178.aspx
>
> <Page.Resources>
>   <ResourceDictionary>
>     <ResourceDictionary.MergedDictionaries>
>       <ResourceDictionary Source="myresourcedictionary.xaml"/>
>       <ResourceDictionary Source="myresourcedictionary2.xaml"/>
>     </ResourceDictionary.MergedDictionaries>
>   </ResourceDictionary></Page.Resources>
>
> To isolate the boostrapper problem I would just create a simple WPF
> application and ensure that MergeDictionary xaml syntax is correct
> specially the pack uri scheme.
>
>
> -Raj
>
>
>
>
> On Mon, Apr 8, 2013 at 2:47 PM, Rob Mensching <r...@robmensching.com>
> wrote:
>
> > Are those files supposed to be in the same directory as the .dll or in
> > subdirectories like: "Views\Style"?  If the latter, try adding a
> > Payload/@Name attribute that adds the relative path to the name of the
> > files.
> >
> >
> > On Mon, Apr 8, 2013 at 1:42 PM, Nick Miller
> > <nmil...@livetechnology.com
> > >wrote:
> >
> > > There are two resource files, and the ButtonStyles RD depends on the
> > > Resources RD.  I've added the payload entries as follows:
> > >
> > > <Payload SourceFile="c:\path\to\file\ButonStyles.xaml" /> <Payload
> > > SourceFile="c:\path\to\file\Resources.xaml" />
> > >
> > > BA still crashes on open...
> > >
> > > -----Original Message-----
> > > From: Rob Mensching [mailto:r...@robmensching.com]
> > > Sent: Monday, April 08, 2013 4:21 PM
> > > To: General discussion for Windows Installer XML toolset.
> > > Subject: Re: [WiX-users] Visual Styles in Wix BA
> > >
> > > Did you add the extra files as Payload elements under the
> > > BootstrapperApplication element? If not, they are certainly missing
> > > from where your BA is being run.
> > >
> > >
> > > On Mon, Apr 8, 2013 at 12:51 PM, Nick Miller
> > > <nmil...@livetechnology.com
> > > >wrote:
> > >
> > > > Thanks for the reply.  This looks like what I currently have but
> > > > it still doesn't work.  Currently there is only one window in the
> > > > installer.  Am I missing something?
> > > >
> > > > <Window x:Class="TestInstaller.Views.InstallView"
> > > >         xmlns="
> > http://schemas.microsoft.com/winfx/2006/xaml/presentation
> > > "
> > > >         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml";
> > > >         xmlns:mc="
> > > > http://schemas.openxmlformats.org/markup-compatibility/2006";
> > > >         xmlns:d="http://schemas.microsoft.com/expression/blend/2008";
> > > >         mc:Ignorable="d"
> > > >         Width="789"
> > > >         Height="400"
> > > >         WindowStyle="None"
> > > >         ResizeMode="NoResize"
> > > >         AllowsTransparency="True"
> > > >         Background="Transparent" >
> > > >     <Window.Resources>
> > > >                 <ResourceDictionary
> > > > Source="pack://application:,,,/Views/Style/ButtonStyles.xaml"/>
> > > >     </Window.Resources>
> > > >
> > > > Nicholas Miller (Network Administrator) LiveTechnology Holdings, Inc.
> > > > LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
> > > > Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
> > > > Email: nmil...@livetechnology.com
> > > > Website: www.LiveTechnology.com
> > > >
> > > > -----Original Message-----
> > > > From: ptr [mailto:ptrajku...@gmail.com]
> > > > Sent: Monday, April 08, 2013 2:59 PM
> > > > To: General discussion for Windows Installer XML toolset.
> > > > Subject: Re: [WiX-users] Visual Styles in Wix BA
> > > >
> > > > I had the same issue. The cause seem to be that for a regular WPF
> > > > application there is always an Application.Current
> > > >
> > > > The boostrapper kinda fakes it so there is no application.Current
> > > > and as a consequence you cannot have any application level
> > > > resources for a managed boostrapper. What I ended up doing is
> > > > having a
> > > >
> > > >     <Page.Resources>
> > > >         <ResourceDictionary
> > > > Source="pack://application:,,,/Styles/Styles.xaml" />
> > > >     </Page.Resources>
> > > >
> > > > for every window/page in my boostrapper. This works fine.
> > > >
> > > > Hope it helps
> > > > Raj
> > > >
> > > >
> > > >
> > > > On Mon, Apr 8, 2013 at 12:02 PM, Marco Tognacci <mark...@live.it>
> > wrote:
> > > >
> > > > > How do you refere to the resource dictionary, perhaps do you
> > > > > have copied it to the output folder?If you don't add any other
> > > > > item to the bundle paylod you have only the WixBA.dll in the
> > > > > temp folder where it's a started, so you need to have all the
> > > > > resources embedded on the dll.If you can, you could post your
> sample project.
> > > > >
> > > > > > From: jacob.hoo...@greenheck.com
> > > > > > To: wix-users@lists.sourceforge.net
> > > > > > Date: Mon, 8 Apr 2013 17:50:26 +0000
> > > > > > Subject: Re: [WiX-users] Visual Styles in Wix BA
> > > > > >
> > > > > > I don't do much with managed BA's, but there is a difference
> > > > > > between a
> > > > > standard WPF Exe project and a BA which is a DLL. You might want
> > > > > to have a look at the Wix BA (src\Setup\WixBA) to see if there
> > > > > is an example to go by there.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Nick Miller [mailto:nmil...@livetechnology.com]
> > > > > > Sent: Monday, April 08, 2013 12:19 PM
> > > > > > To: wix-users@lists.sourceforge.net
> > > > > > Subject: [WiX-users] Visual Styles in Wix BA
> > > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am fairly new to Wix, and I am running into a strange issue
> > > > > > that I
> > > > > can't seem to figure out.  I have a simple bootsrapper
> > > > > application that works fine until I add a resource dictionary to
> > > > > the wpf component.  These resource dictionaries work fine on a
> > > > > normal wpf application, however when I add it to the BA, it
> > > > > builds fine but the installer crashes.  Is there anything I need
> > > > > to add to the resource dictionaries to get them to work with the
> BA?
> > > > > >
> > > > > > Thanks,
> > > > > > Nick
> > > > > >
> > > > > > Nicholas Miller (Network Administrator) LiveTechnology
> > > > > > Holdings, Inc.
> > > > > > LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY
> > > > > > 10987
> > > > > > Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
> > > > > > Email:
> > > > > > nmil...@livetechnology.com<mailto:nmil...@livetechnology.com>
> > > > > > Website:
> > > > > > www.LiveTechnology.com<http://www.livetechnology.com/>
> > > > > >
> > > > > >
> > > > > ----------------------------------------------------------------
> > > > > ----
> > > > > --
> > > > > --------
> > > > > > Minimize network downtime and maximize team effectiveness.
> > > > > > Reduce network management and security costs.Learn how to hire
> > > > > > the most
> > > > > talented Cisco Certified professionals. Visit the Employer
> > > > > Resources Portal
> > > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > > > _______________________________________________
> > > > > > WiX-users mailing list
> > > > > > WiX-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > > >
> > > > > >
> > > > > ----------------------------------------------------------------
> > > > > ----
> > > > > --
> > > > > --------
> > > > > > Minimize network downtime and maximize team effectiveness.
> > > > > > Reduce network management and security costs.Learn how to hire
> > > > > > the most talented Cisco Certified professionals. Visit the
> > > > > > Employer Resources Portal
> > > > > > http://www.cisco.com/web/learning/employer_resources/index.htm
> > > > > > l _______________________________________________
> > > > > > WiX-users mailing list
> > > > > > WiX-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > >
> > > > >
> > > > > ----------------------------------------------------------------
> > > > > ----
> > > > > --
> > > > > -------- Minimize network downtime and maximize team effectiveness.
> > > > > Reduce network management and security costs.Learn how to hire
> > > > > the most talented Cisco Certified professionals. Visit the
> > > > > Employer Resources Portal
> > > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > > _______________________________________________
> > > > > WiX-users mailing list
> > > > > WiX-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > ----
> > > > -------- Minimize network downtime and maximize team effectiveness.
> > > > Reduce network management and security costs.Learn how to hire the
> > > > most talented Cisco Certified professionals. Visit the Employer
> > > > Resources Portal
> > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > WiX-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > ----
> > > > -------- Minimize network downtime and maximize team effectiveness.
> > > > Reduce network management and security costs.Learn how to hire the
> > > > most talented Cisco Certified professionals. Visit the Employer
> > > > Resources Portal
> > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > WiX-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > >
> > > >
> > >
> > >
> > ----------------------------------------------------------------------
> > --------
> > > Minimize network downtime and maximize team effectiveness.
> > > Reduce network management and security costs.Learn how to hire the
> > > most talented Cisco Certified professionals. Visit the Employer
> > > Resources
> > Portal
> > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > >
> > >
> > >
> > ----------------------------------------------------------------------
> > --------
> > > Minimize network downtime and maximize team effectiveness.
> > > Reduce network management and security costs.Learn how to hire the
> > > most talented Cisco Certified professionals. Visit the Employer
> > > Resources Portal
> > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> >
> > ----------------------------------------------------------------------
> > -------- Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire the
> > most talented Cisco Certified professionals. Visit the Employer
> > Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire the most
> talented Cisco Certified professionals. Visit the Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to