Kannan24 wrote > > Hi, > > 1. I followed the update to set the msiproperty values in managed code, > but i cannot achieve to set the property value. > > I have used the below code. > > Bundle.wxs: > > <Variable Name="UI" Value="False"/> > <Chain> > <MsiPackage Id="SketchUpPlugin" Name="Wixdata" > SourceFile="C:\Users\Kannanns\Documents\Visual Studio > 2010\Projects\TestSetup\TestSetup\bin\Debug\TestSetup.msi" > Compressed="yes" DisplayInternalUI="no" ForcePerMachine="yes" > Permanent="yes" Vital="yes" EnableFeatureSelection="yes"> > <MsiProperty Name="USER_INTERFACE" Value="UI"/> > </MsiPackage> > > BA Managed code: > > SyncBA.Model.Engine.Plan(LaunchAction.Install); > > SyncBA.Model.Engine.Apply(SyncBA.hwnd); > > SyncBA.Model.Bootstrapper.Engine.StringVariables["UI"] = "FALSE"; > > In product.wxs i used the USER_INTERFACE as TRUE, now i changing the > USER_INTERFACE in managed code. I got the USER_INTERFACE as UI instead of > FALSE. Please point out me where i need to change. >
Like Windows Installer properties, use should use brackets to have burn evaluate the burn variable. So, change <MsiProperty Name="USER_INTERFACE" Value="UI"/> to <MsiProperty Name="USER_INTERFACE" Value="[UI]"/> Also, you need to change the value of the variable before calling Apply(). Kannan24 wrote > > 2. I need to display the MSI features in managed code, i found the > BootstrapperApplicationData.xml file under the temp folder, it shows all > the msifeatures but not in an order. I need to display in treeview control > as it same order in product.wxs. Is there any way to display the > msifeatures list in managed code? > Sort them by the "Display" attribute. Look at the MDSN documentation for the http://msdn.microsoft.com/en-us/library/windows/desktop/aa368585%28v=vs.85%29.aspx feature table . Since you have all of the information from this table you can mimic MSI behavior if you wish. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-Planning-package-customization-tp6040489p7578862.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users