Sorry to answer my own post. I'm new to Ant, so I didn't know that I needed to have my command invocation like this;
<exec executable="${wix.dir}/light.exe" dir="${iis_install.dir}"> <arg value="-ext"/> <arg value="WixUIExtension"/> <arg value="-ext"/> <arg value="WixUtilExtension"/> <arg value="-cultures:en-us"/> <arg value="-out"/> <arg value="${iis_install.msi}"/> <arg value="${iis_install.object}"/> </exec> Instead of this, which does *NOT* work (one can not combine arguments in the same arg value). <exec executable="${wix.dir}/light.exe" dir="${iis_install.dir}"> <arg value="-ext WixUIExtension -ext WixUtilExtension " /> <arg value="-cultures:en-us"/> <arg value="-out${iis_install.msi}"/> <arg value="${iis_install.object}"/> </exec> I'm posting in case anyone else gets stuck on the same issue. Dale -----Original Message----- From: Dale Quigg Sent: Tuesday, June 19, 2007 1:11 PM To: 'wix-users@lists.sourceforge.net' Subject: Trying to build WiX in ANT Hi, I'm trying to build my WiX project using Apache Ant. When I run my candle.exe and light.exe commands in a "plain" DOS command (no WiX directories in path) the build is successful. The commands I use are; C:\PathTo\candle.exe MyProject.wxs C:\PathTo\light.exe MyProject.wixobj -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -out MyProject.msi When I run (what I've checked to be) the same commands in Ant, I get many of these types of errors; error LGHT0094 : Unresolved reference to symbol 'WixUI:WixUI_Common' in section 'Product:{1759D8EC-781D-44EA-965D-2F4E9B05991B}'. <snip> error LGHT0094 : Unresolved reference to symbol 'Dialog:LicenseAgreementDlg' in section 'Product:{1759D8EC-781D-44EA-965D-2F4E9B05991B}'. <snip> error LGHT0094 : Unresolved reference to symbol 'Binary:WixCA' in section 'Product:{1759D8EC-781D-44EA-965D-2F4E9B05991B}'. <snip> Obviously, something is different in the environment when run from Ant, but I don't know where to start. Should I likely; 1) invoke candle.exe with additional switches? 2) invoke light.exe with additional switches? I tried making my light command like this; C:PathTo\light.exe C:\PathTo\MyProject.wixobj -ext C:\PathTo\WixUIExtension -ext C:\PathTo\WixUtilExtension -cultures:en-us -out MyProject.msi But this gave the following error; light.exe : error LGHT0144 : The extension 'C:\ PathTo\WixUIExtension' could not be loaded. Any help appreciated. Thanks, Dale ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users