Hi all, 

A nice example chris I never thought of that option..  I have done it
completely differently, my current code is quite messy as I was trying to
find a way to do this first. It really needs to be refactored using a
serializer or something. 

We use a master xml file here which contains environment specific
configuration for a huge distributed website. Within the config are multiple
PUBLIC properties which are used to set config files and various other
items. During our build process I parse a master config and dynamically
generate the WiX UI fragments. 

Due to my current role having IP restrictions I am not allowed to share the
code however I can certainly share the concept i used. 

Basically a tool which acts in much the same was as Tallow except for UI. I
enumerate one of my site config files for all properties which are being set
then generate Text box / Edit box UI controls for each of those properties.
I also use a 3rd value which determines which UI page the controls should go
on. 

Using the 3rd values i then do a "select distinct" name to get a list of the
dialogs (UI pages) that need to be generated. 

In the master templates I create references to two dynamically generated
fragments. One fragment contains a list of the controls for each dialog. The
other fragment contains a list of the dialog fragments as references. 

If you need more detail let me know.. Sorry about being vague with the code
I had to sign NDA's on this role. 

Cheers, 

John 




Christopher Painter-2 wrote:
> 
> True. I just wanted to clarify that it `could` be done and I'm sure with
> the proper attention to detail, could even be done reliably if it was ever
> truely needed. 
> 
> Regardless, the original poster is probably more interested in some way of
> dynamically generating WiX UI XML from an external dataset and then
> passing it on to candle anyways.  The ControlConditions scenario can work,
> provided that the disabled controls can exist in the MSI.  
> 
> I've worked at companies where this would not be allowed because it would
> be a security violation to have certain product line capabilities exist
> within a package (and visible via orca) where they don't belong even if
> they are disabled.
> 
> Regards,
> Chris
> 
> Christopher Painter, Author of Deployment Engineering Blog
> Have a hot tip, know a secret or read a really good thread that deserves
> attention? E-Mail Me
> 
> 
> --- On Mon, 7/7/08, Jason <[EMAIL PROTECTED]> wrote:
> 
>> From: Jason <[EMAIL PROTECTED]>
>> Subject: Re: [WiX-users] How to dynamically create check boxes in WIX UI
>> To: [EMAIL PROTECTED], "General discussion for Windows
>> Installer XML toolset." <wix-users@lists.sourceforge.net>
>> Date: Monday, July 7, 2008, 12:24 PM
>> You are correct.
>> I always forget about temporary rows..
>> However like your post details that still requires a custom
>> action and
>> doesn't get the benefit of validation.
>> 
>> 
>> On Mon, Jul 7, 2008 at 10:08 AM, Christopher Painter
>> <[EMAIL PROTECTED]> wrote:
>> > Jason-
>> >
>> >  MSI is a relational database that supports temporary
>> records. It's entirely possible to dynamically emit
>> controls at runtime:
>> >
>> >
>> http://blog.deploymentengineering.com/2008/07/dynamic-windows-installer-ui.html
>> >
>> > But otherwise you are correct. The general practice is
>> to have a bunch of disabled controls that are dynamically
>> enabled.
>> >
>> > Regards,
>> > Chris
>> >
>> >
>> > Christopher Painter, Author of Deployment Engineering
>> Blog
>> > Have a hot tip, know a secret or read a really good
>> thread that deserves attention? E-Mail Me
>> >
>> >
>> > --- On Mon, 7/7/08, Jason <[EMAIL PROTECTED]>
>> wrote:
>> >
>> >> From: Jason <[EMAIL PROTECTED]>
>> >> Subject: Re: [WiX-users] How to dynamically create
>> check boxes in WIX UI
>> >> To: "General discussion for Windows Installer
>> XML toolset." <wix-users@lists.sourceforge.net>
>> >> Date: Monday, July 7, 2008, 1:43 AM
>> >> You can't 'dynamically generate' UI
>> under
>> >> Windows Installer without a
>> >> custom UI handler.
>> >> You can, however, have a standard dialog and
>> simply
>> >> disable/hide
>> >> controls that are not in use.
>> >> Check the ControlCondition table -
>> >>
>> http://msdn.microsoft.com/en-us/library/aa368035(VS.85).aspx
>> >>
>> >> On Mon, Jul 7, 2008 at 12:43 AM, Nimisha Saboo
>> >> <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I am new to Wix programming.
>> >> > I need to dynamically generate check boxes in
>> WIX UI,
>> >> depending on the number of some external
>> parameters.
>> >> > Is there a way to accomplish this?
>> >> >
>> >> > Thanks and regards,
>> >> > Nimisha
>> >> >
>> >>
>> -------------------------------------------------------------------------
>> >> > Sponsored by: SourceForge.net Community
>> Choice Awards:
>> >> VOTE NOW!
>> >> > Studies have shown that voting for your
>> favorite open
>> >> source project,
>> >> > along with a healthy diet, reduces your
>> potential for
>> >> chronic lameness
>> >> > and boredom. Vote Now at
>> >> http://www.sourceforge.net/community/cca08
>> >> >
>> _______________________________________________
>> >> > WiX-users mailing list
>> >> > WiX-users@lists.sourceforge.net
>> >> >
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> >> >
>> >>
>> >>
>> -------------------------------------------------------------------------
>> >> Sponsored by: SourceForge.net Community Choice
>> Awards: VOTE
>> >> NOW!
>> >> Studies have shown that voting for your favorite
>> open
>> >> source project,
>> >> along with a healthy diet, reduces your potential
>> for
>> >> chronic lameness
>> >> and boredom. Vote Now at
>> >> http://www.sourceforge.net/community/cca08
>> >> _______________________________________________
>> >> WiX-users mailing list
>> >> WiX-users@lists.sourceforge.net
>> >>
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> >
>> >
>> >
>> >
>> >
>> -------------------------------------------------------------------------
>> > Sponsored by: SourceForge.net Community Choice Awards:
>> VOTE NOW!
>> > Studies have shown that voting for your favorite open
>> source project,
>> > along with a healthy diet, reduces your potential for
>> chronic lameness
>> > and boredom. Vote Now at
>> http://www.sourceforge.net/community/cca08
>> > _______________________________________________
>> > WiX-users mailing list
>> > WiX-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> >
> 
> 
>       
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-dynamically-create-check-boxes-in-WIX-UI-tp18310387p18330098.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to