Thank you VERY much Pally! Big help. For the sake of anyone else reading this thread on this forum, let me say that there were a couple of other minor changes I had to make IN ADDITION to doing exactly what Pally said in his reply. So for the sake of other newbies like me, let me just list what I think is the complete list of steps I performed:
1. Copy the SetupTypeDlg.wxs file from the source distribution of Wix into your local folder. 2. If you want to, rename your copy of SetupTypeDlg.wxs to something that indicates it is a customized version. I chose to name mine SetupTypeDlg_Custom.wxs. 3. Change the <Dialog> Id attribute to a new name so as not to conflict with the <Dialog> tag in the Wix product itself. My <Dialog> tag ended up looking like this: <Dialog Id="SetupTypeDlg_Custom" Width="370" Height="270" Title="!(loc.SetupTypeDlg_Title)"> 4. In your Product.wxs file or in some other wxs file you may have defined related to your user interface, add the following: <DialogRef Id="SetupTypeDlg_Custom" /> 5. Just as Pally said, find and change all uses of the original Id name SetupTypeDlg to your new name, in my case SetupTypeDlg_Custom. So for example, the following original statement from the original WiXUI_Mondo.wxs file: <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="SetupTypeDlg">NOT Installed AND NOT PATCH</Publish> ... now looks like this: <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="SetupTypeDlg_Custom">NOT Installed AND NOT PATCH</Publish> I think the above steps cover what needs to be done to copy the SetupTypeDlg.wxs into your own project, but note that I have NOT changed any of the dialogs behavior yet. The following steps are what I performed to remove the "Typical" installation type choice from my installer. 1. In my SetupTypeDlg_Custom.wxs file, I commented out (or you can delete) the <Control> node that defines the TypeicalButton. This node starts with: <Control Id="TypicalButton" Type="PushButton" X="40" Y="65" Width="80" etc... NOTE: I recommend that at least until you have it working, you comment out these <Control> elements instead of deleting them. The reason is that in the final steps of this modification you will want to know where those controls were positioned on the screen so you will want to refer back to the <Control> elements that you will no longer be using. Of course you could also just delete them and when you need position information, refer back to the original unmodified SetupTypeDlg.wxs file. 2. Locate any references to "TypicalButton" and remove or comment them out. For example: <Publish Dialog="SetupTypeDlg_Custom" Control="TypicalButton" Event="NewDialog" Value="InstallDirDlg">1</Publish> 3. Locate and remove or comment out the <Control> element with the Id of "TypicalText". At this point my modification to remove the Typical setup type choice was FUNCTIONALLY complete. But the Choose Setup Type dialog looked pretty bad because there was a large amount of blank space where the TypicalButton and the TypicalText" controls had been. So to correct that I simply changed the "Y=" attributes on the CustomButton, CustomText, CompleteButton, and CompleteText <Control> objects until I had them moved up and the dialog looked nice once again. I also wanted the "Complete" button to appear before the "Custom" button, so did the same thing here... just played with the Y coordinates until it looked good. Actually, I did not even have to guess at the Y coordinate changes. I just made node of the Y coordinates of the original 3 buttons and their descriptive text, then just used those same Y coordinates on the remaining controls as appropriate. -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Thursday, May 19, 2011 6:15 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How To Remove Typical Button On Choose Setup Type Dialog Create a copy of SetupTypeDlg.wxs, remove the Typical button from your copy & replace all references to SetupTypeDlg in your copy of WiXUI_Mondo with references to your modified SetupTypeDlg. Neil Sleigtholm's blog article on this subject may help get you further along with this -> http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html The WiX manual page on modifying the stock UI's can be found at http://wix.sourceforge.net/manual-wix3/WixUI_index.htm but it doesn't really cover this. Palbinder Sandher Software Deployment Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Bradley Ward [mailto:bradley.w...@turnpoint-solutions.com] Sent: 18 May 2011 21:19 To: Wix-Users List (wix-users@lists.sourceforge.net) Subject: [WiX-users] How To Remove Typical Button On Choose Setup Type Dialog Newbie here... Is there a way that I can remove the "Typical" button from the Choose Setup Type dialog? I would like to just offer the "Custom" and the "Complete" buttons. It would also be nice to control the order so the "Complete" button is above the "Custom" button. I have made a local copy of the WixUI_Mondo.wxs file and have successfully made some changes to it that affect the behavior, but I do not see how to make the Typical button disappear. If you know of a link that would help me in this quest, it would be much appreciated! Thanks, Brad ------------------------------------------------------------------------ ------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users