Hi all, I've made a copy of the wixui_mondo.wxs file to customize. I've changed the SetupType dialog to goto one dialog or another depending on a condition determined by a registry entry:
<!-- Setup dialog --> <Publish Dialog="SetupTypeDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish> <Publish Dialog="SetupTypeDlg" Control="CustomButton" Event="NewDialog" Value="CustomizeDlg">1</Publish> <Publish Dialog="SetupTypeDlg" Control="TypicalButton" Event="NewDialog" Value="VerifyReadyDlg" Order="1"> (LEGACY_APPDATA = "") AND (WixUI_InstallMode = "InstallCustom" OR WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete") </Publish> <Publish Dialog="SetupTypeDlg" Control="TypicalButton" Event="NewDialog" Value="MigrateDlg" Order="2"> (NOT LEGACY_APPDATA = "") AND (WixUI_InstallMode = "InstallCustom" OR WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete") </Publish> <Publish Dialog="SetupTypeDlg" Control="CompleteButton" Event="NewDialog" Value="VerifyReadyDlg" Order="1"> (LEGACY_APPDATA = "") AND (WixUI_InstallMode = "InstallCustom" OR WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete") </Publish> <Publish Dialog="SetupTypeDlg" Control="CompleteButton" Event="NewDialog" Value="MigrateDlg" Order="2"> (NOT LEGACY_APPDATA = "") AND (WixUI_InstallMode = "InstallCustom" OR WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete") </Publish> The reg search looks like this, and seems to work fine: <Property Id="LEGACY_APPDATA"> <RegistrySearch Id="LEGACY_APPDATA_REGISTRY_SEARCH" Root="HKLM" Key="SOFTWARE\MyApp\Settings" Name="Data" Type="raw" /> </Property> The problem is when the SetupType dialog gets displayed, I have to click twice on the Typical or Complete buttons to proceed. If I go back to the SetupType dialog, it's fine, it's always just the first time in a particular installation session, almost like it's having to go away and determine something. Any ideas anyone? Thanks, Mark. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users