Yeah, totally. That'll just be challenging to do in the build process when
the Bundle is created... but could definitely do it before hand and pump
the data into the system like I was suggesting... or something completely
different. <smile/>


On Mon, Apr 1, 2013 at 11:05 AM, Phil Wilson <phil.wil...@mvps.org> wrote:

> I don't know about Burn, but there are certainly enough APIs to open a
> database, apply a transform, and then enumerate the features and feature
> descriptions and titles. You don't need the session object. Basically you
> need SQL queries. In the script world you open the database and apply your
> transform then use something like this (not exact or complete):
>
> Set view = Database.OpenView ("Select Feature from Feature")
> View.execute
> Do
> Set record = view.fetch
> If record=nothing then Exit Do
> Fname= StringData (1)   will be the feature identifier
> Fdesc = StringData (4) will be feature description
>
> .....
> Loop
>
> Those returned items are indexed as 1 and 4 because that's their position
> in
> the Feature table.
>
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa368585(v=vs.85).as
> px
>
> Sql examples here:
>
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa372021(v=vs.85).as
> px
>
>
> Phil
>
>
> -----Original Message-----
> From: Marco Tognacci [mailto:mark...@live.it]
> Sent: Sunday, March 31, 2013 2:24 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] obain the name of components using msi/wix
> functions
>
> Thanks for your support, applying the Transformations from DataBase works.
> I need to take these informations, because I want to create a custom WPF UI
> for the Burn Bootstrapper,and I need to know all the feature (with
> localized
> title and description) that are contained in each msi that is in my
> BurnChain to provide a window in which the user can choose which feature to
> install (so I need to have these infos in the pre-install process and
> modify
> when it is installed). I want to collect the infos about features from MSI
> as in this way I can create a burn UI that doesn't needto know the details
> of each msi to install, but only define the Chain.
> So Opening the msi from path I can read the informations, but is there a
> way
> to reach the Session or DataBase and take these infos inside aBurn custom
> UI
> project? My class derive from BootstrapperApplication, and in this I
> haven't
> found an entry point to read the DataBase.Or I need to add each msi and the
> relative transformations for localization as Burn Payload and open them
> from
> temporary Bootstrapper folder? Perhaps is there some other way using the
> DTF
> extension?
>
>
> > From: phil.wil...@mvps.org
> > To: wix-users@lists.sourceforge.net
> > Date: Sun, 31 Mar 2013 11:34:16 -0700
> > Subject: Re: [WiX-users] obain the name of components using msi/wix
> > functions
> >
> > You could try the Win32 MsiDatabaseApplyTransform(), that's
> > Database.ApplyTransform in the scripting world. The problem is that
> > the scripting object model doesn't appear to provide navigation from
> > installer functions that apply to product installation, and database
> > functions that apply to the MSI file. For example Orca can apply a
> > transform to an MSI file, but applying transforms to an installed
> > product isn't something you can do after installation unless you're
> applying a patch.
> >
> > However, I'm a bit confused because your original post talked about
> > the installed components for a given product, but that code fragment
> > you posted is opening an MSI file. We've already mentioned the APIs
> > that enumerate all the installed components and how to get the
> > products that use them, so that appears to be the solution anyway
> > because what you get back will include patches and transforms that may
> > have been applied when the product was installed.
> >
> > Phil
> >
> > -----Original Message-----
> > From: mark222 [mailto:mark...@live.it]
> > Sent: Saturday, March 30, 2013 4:32 PM
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] obain the name of components using msi/wix
> > functions
> >
> > I have tried to open the msi file using this code:
> >
> > string msiFile = "MyInstallation.msi"; var session =
> > Installer.OpenPackage(msiFile, false); var language =
> > session.Language; var features = session.Features; foreach (var
> > feature in
> > features) {
> >   var name = feature.Name;
> >   var description = feature.Description;
> >   var title = feature.Title;
> > }
> >
> > but I need to open the msi file passing the mst or language to have
> > localized Text and Description, is there any way for doing this?
> >
> >
> >
> > --
> > View this message in context:
> > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/obain-th
> > e-name -of-components-using-msi-wix-functions-tp7584759p7584773.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> > ----------------------------------------------------------------------
> > ------
> > --
> > Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to
> > greatness in Intel's independent game demo contest. Compete for
> > recognition, cash, and the chance to get your game on Steam.
> > $5K grand prize plus 10 genre and skill prizes. Submit your demo by
> 6/6/13.
> > http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
> > ----------------------------------------------------------------------
> > -------- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise
> > to greatness in Intel's independent game demo contest. Compete for
> > recognition, cash, and the chance to get your game on Steam.
> > $5K grand prize plus 10 genre and skill prizes. Submit your demo by
> > 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ----------------------------------------------------------------------------
> --
> Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness
> in
> Intel's independent game demo contest. Compete for recognition, cash, and
> the chance to get your game on Steam.
> $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13.
> http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ------------------------------------------------------------------------------
> Own the Future-Intel&reg; Level Up Game Demo Contest 2013
> Rise to greatness in Intel's independent game demo contest.
> Compete for recognition, cash, and the chance to get your game
> on Steam. $5K grand prize plus 10 genre and skill prizes.
> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to