Scott Palmer wrote: > This talk of WiX 3's "floating" Publish elements sounds interesting. > I can appreciate the complexity of a fully branching UI, but I'm > hoping that the ability to inject a simple form or two into a linear > UI flow might not be so hard. In fact if that could be done combined > with a way to disable dialogs in the chain so that they automatically > are skipped based on some property setting then I think you would have > something quite powerful that might be able to handle many branching > UI cases. I don't know enough about MSI to know if it is possible at > all. > > Where can I find more information about the "floating " Publish > elements and defining my own dialog set that borrows from the dialogs > in the wixlib. Something tells me that injecting my own dialogs into > the flow may still be a problem.
Take a look at the source for the dialog sets. For example, WixUI_InstallDir.wxs has a few TextStyle, Property, and DialogRef elements, followed by many Publish elements: <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">LicenseAccepted = "1"</Publish> To create your own set with different wizard-page ordering, just copy WixUI_InstallDir.wxs, rename it, rename the UI/@Id attribute so it doesn't conflict with the copy in WixUIExtension.dll, and change the @Value attributes for the dialogs "surrounding" your new one(s) to whatever works for your set. By moving the dialogs' behavior out of the fragments that define the UI, there's one place to change to create a custom set and we don't have to worry about duplicate property values (as was the case with the WiX v2 WixUI sets). You still have to manage both Back and Next buttons, however, and that's what gets complicated in a branching UI. -- sig://boB http://bobs.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users