I'd do something similar to the checkbox on the LicenseAgreementDlg. You can find it in the WiX sources at src\ext\UIExtension\wixlib\LicenseAgreementDlg.wxs (WiX sources distributions can be found on SourceForge).
Disable the "Next" button on the dialog page where they select the installation path, have a "Check for valid path" button on that dialog which checks the path entered for spaces & put some text there to tell the user they need to make sure the path has no spaces in it. If the path is valid enable the "Next" button. The "Check for valid path" button can simply run a custom action that checks a supplied property for spaces & returns true or false which you can probably do quite easily using DTF. That eliminates the need for your warning dialog entirely. Good luck. Palbinder Sandher Software Deployment & IT Administrator 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: S.P [mailto:iraniangirl9...@yahoo.com] Sent: 08 March 2010 10:38 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Checking the space in the install path(Please help me) Dear All, I have a problem with publish element, which couldn't find its solution. One of the files which is going to be installed on the target machine can not work if there is a space in the path, so I need to check the install path to ensure there is no space in it. I need to show a custom warning dialog to the user if he use an install path with space, and return to the last dialog to select the installation path again.How should I write this publish element to check the space in path? I need to have the code of the costum action which checks the space in the path. Thanks everyone in advance ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users