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-the-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